in source/openid-waitingroom/chalice/app.py [0:0]
def validate_oidc_request(client_id, redirect_uri, response_type, scope):
"""
The function validates the three OIDC request parameters from the web site
"""
valid_redirect_uris = json.loads(
SECRETS_CLIENT.get_secret_value(
SecretId=REDIRECT_URIS_SECRET_ID).get("SecretString"))
return (client_id == WAITING_ROOM_EVENT_ID) and (
redirect_uri in valid_redirect_uris) and (
response_type in RESPONSE_TYPES) and (scope in REQUEST_SCOPES)