Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit de794e2

Browse files
committed
response_type can be list or singelton.
1 parent 02cfc1e commit de794e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oidcrp/oauth2/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def pick_redirect_uri(context,
4444

4545
_response_mode = request_args.get('response_mode')
4646

47-
if _response_mode == 'form_post':
47+
if _response_mode == 'form_post' or response_type == ["form_post"]:
4848
redirect_uri = context.callback['form_post']
49-
elif response_type == 'code':
49+
elif response_type == 'code' or response_type == ["code"]:
5050
redirect_uri = context.callback['code']
5151
else:
5252
redirect_uri = context.callback['implicit']

0 commit comments

Comments
 (0)