Skip to content

fix: Remove auth check for cloud tasks #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add debug logs for Authorization and X-Firebase-AppCheck headers
  • Loading branch information
exaby73 committed Feb 2, 2024
commit 6baa839a315a6e13259f6ccd4448f7decf318d92
2 changes: 2 additions & 0 deletions src/firebase_functions/private/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def _on_call_check_auth_token(
) -> None | _typing.Literal[OnCallTokenState.INVALID] | dict[str, _typing.Any]:
"""Validates the auth token in a callable request."""
authorization = request.headers.get("Authorization")
logger.debug(f"Authorization (verify_token={verify_token}): {authorization}")
if authorization is None:
return None
if not authorization.startswith("Bearer "):
Expand All @@ -241,6 +242,7 @@ def _on_call_check_app_token(
) -> None | _typing.Literal[OnCallTokenState.INVALID] | dict[str, _typing.Any]:
"""Validates the app token in a callable request."""
app_check = request.headers.get("X-Firebase-AppCheck")
logger.debug(f"X-Firebase-AppCheck (verify_token={verify_token}): {app_check}")
if app_check is None:
return None
try:
Expand Down