diff --git a/services/core-api/app/extensions.py b/services/core-api/app/extensions.py index e25a9c0e79..a4688db3e6 100644 --- a/services/core-api/app/extensions.py +++ b/services/core-api/app/extensions.py @@ -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)