Skip to content

Commit

Permalink
[MDS-5754] - Update check for test jwt secrets in core-api to not cra…
Browse files Browse the repository at this point in the history
…sh on NONETYPE (#3105)

* Update check for test jwt secrets in core-api to not crash on NONETYPE
  • Loading branch information
matbusby-fw authored May 21, 2024
1 parent 218a647 commit d5ef5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/core-api/app/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def getJwtManager():
raise AuthError({'code': 'auth_fail',
'description': 'Token issuer oidc.gov.bc.ca is no longer supported. Please contact the mds team.'}, 401)

if iss in test_config.JWT_OIDC_TEST_ISSUER:
if test_config.JWT_OIDC_TEST_ISSUER is not None and test_config.JWT_OIDC_TEST_ISSUER in iss:
jwt_result = jwt
else:
jwt_result = get_jwt_by_audience(aud)
Expand Down

0 comments on commit d5ef5fd

Please sign in to comment.