Skip to content

Commit

Permalink
[MDS-5414] Fixed auth issue with some integrations in test env (#2628)
Browse files Browse the repository at this point in the history
MDS-5414 Fixed auth issue with some integrations in test env

Co-authored-by: simensma-fresh <[email protected]>
  • Loading branch information
simensma-fresh and simensma-fresh authored Aug 11, 2023
1 parent d6257db commit 9208b58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/core-api/app/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def get_jwt_by_audience(aud):
}

for audience_env, jwt_value in audience_jwt_map.items():
if os.environ.get(audience_env) in aud:
token_audience = os.environ.get(audience_env)

if token_audience and token_audience in aud:
return jwt_value

return None
Expand Down

0 comments on commit 9208b58

Please sign in to comment.