Skip to content

Commit 837045e

Browse files
committed
Fix typo in method name
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
1 parent e2b4531 commit 837045e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pyop/authz_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def get_user_info_for_code(self, authorization_code):
363363

364364
return self.authorization_codes[authorization_code].get(self.KEY_USER_INFO)
365365

366-
def get_extra_io_token_claims_for_code(self, authorization_code):
366+
def get_extra_id_token_claims_for_code(self, authorization_code):
367367
# type: (str) -> dict
368368
if authorization_code not in self.authorization_codes:
369369
raise InvalidAuthorizationCode('{} unknown'.format(authorization_code))

src/pyop/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def _do_code_exchange(self, request, # type: Dict[str, str]
453453
else:
454454
extra_id_token_claims = extra_id_token_claims(user_id, authentication_request['client_id'])
455455
if self.stateless:
456-
extra_id_token_claims_in_code = self.authz_state.get_extra_io_token_claims_for_code(token_request['code'])
456+
extra_id_token_claims_in_code = self.authz_state.get_extra_id_token_claims_for_code(token_request['code'])
457457
extra_id_token_claims.update(extra_id_token_claims_in_code)
458458
requested_claims = self._get_requested_claims_in(authentication_request, 'id_token')
459459
if self.stateless:

0 commit comments

Comments
 (0)