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 b722785 commit b3dbba4Copy full SHA for b3dbba4
api/PclusterApiHandler.py
@@ -63,14 +63,17 @@
63
if not JWKS_URL:
64
JWKS_URL = os.getenv("JWKS_URL",
65
f"https://cognito-idp.{REGION}.amazonaws.com/{USER_POOL_ID}/" ".well-known/jwks.json")
66
-API_BASE_URL_MAPPING = {}
67
68
-for url in API_BASE_URL.split(","):
69
- if url:
70
- pair=url.split("=")
71
- API_BASE_URL_MAPPING[pair[0]] = pair[1]
72
+def create_api_base_url_mapping(base):
+ result = {}
+ for url in base.split(","):
+ if url:
+ pair=url.split("=")
73
+ result[pair[0]] = pair[1]
74
+ return result
75
76
+API_BASE_URL_MAPPING = create_api_base_url_mapping(API_BASE_URL)
77
78
def jwt_decode(token, audience=None, access_token=None):
79
return jwt.decode(
0 commit comments