Skip to content
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions src/authutils/token/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def validate_jwt(
# Some Gen3 apps use BASE_URL and some use USER_API, so fall back on USER_API
if aud is None:
aud = flask.current_app.config.get("USER_API")
# Skip aud validation if no audience is configured
if aud is None:
options["verify_aud"] = False

if public_key is None:
public_key = get_public_key_for_token(
Expand Down