Skip to content

Commit ab5876e

Browse files
Zoopac00kiemon5ter
andcommitted
Update src/pyop/provider.py
Improve initialisation of extra_id_token_claims Co-authored-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
1 parent 3e52b8e commit ab5876e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pyop/provider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ def _do_code_exchange(self, request, # type: Dict[str, str]
446446
if refresh_token is not None:
447447
response['refresh_token'] = refresh_token
448448

449-
if extra_id_token_claims is None:
450-
extra_id_token_claims = {}
449+
extra_id_token_claims = extra_id_token_claims or {}
451450

452451
if self.stateless:
453452
extra_id_token_claims_in_code = self.authz_state.get_extra_id_token_claims_for_code(token_request['code'])

0 commit comments

Comments
 (0)