providers/oauth2: fix comparison to undefined ResponseTypes

This commit is contained in:
Jens Langhammer 2020-09-10 16:26:55 +02:00
parent 4edfad869f
commit b3468bc265
1 changed files with 3 additions and 3 deletions

View File

@ -93,9 +93,9 @@ class OAuthAuthorizationParams:
if response_type in [ResponseTypes.CODE]:
grant_type = GrantTypes.AUTHORIZATION_CODE
elif response_type in [
ResponseTypes.id_token,
ResponseTypes.id_token_token,
ResponseTypes.token,
ResponseTypes.ID_TOKEN,
ResponseTypes.ID_TOKEN_TOKEN,
ResponseTypes.TOKEN,
]:
grant_type = GrantTypes.IMPLICIT
elif response_type in [