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]: if response_type in [ResponseTypes.CODE]:
grant_type = GrantTypes.AUTHORIZATION_CODE grant_type = GrantTypes.AUTHORIZATION_CODE
elif response_type in [ elif response_type in [
ResponseTypes.id_token, ResponseTypes.ID_TOKEN,
ResponseTypes.id_token_token, ResponseTypes.ID_TOKEN_TOKEN,
ResponseTypes.token, ResponseTypes.TOKEN,
]: ]:
grant_type = GrantTypes.IMPLICIT grant_type = GrantTypes.IMPLICIT
elif response_type in [ elif response_type in [