We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b22aaa commit e545d67Copy full SHA for e545d67
run/service-auth/app.py
@@ -74,7 +74,11 @@ def parse_auth_header(auth_header: str) -> Optional[str]:
74
"""
75
76
# Split the auth type and value from the header.
77
- auth_type, creds = auth_header.split(" ", 1)
+ try:
78
+ auth_type, creds = auth_header.split(" ", 1)
79
+ except ValueError:
80
+ print("Malformed Authorization header.")
81
+ return None
82
83
# The token audience will be the SERVICE_URL.
84
# If `audience` was None, it won't be verified.
0 commit comments