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

Commit 9a5426e

Browse files
committed
Collect and ID Token if it's not collected as part of the normal stream.
1 parent d941bec commit 9a5426e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/oidcrp/rp_handler.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def create_callbacks(self, issuer, request_uri=False):
380380

381381
return res
382382

383-
def _get_response_type(self, context, req_args: Optional[dict] =None):
383+
def _get_response_type(self, context, req_args: Optional[dict] = None):
384384
if req_args:
385385
return req_args.get("response_type", context.get('behaviour')['response_types'][0])
386386
else:
@@ -682,8 +682,10 @@ def finalize_auth(self, client, issuer: str, response: dict,
682682
authorization_response['state'])
683683
return authorization_response
684684

685-
def get_access_and_id_token(self, authorization_response=None, state='', client=None,
686-
behaviour_args: Optionl[dict] =None):
685+
def get_access_and_id_token(self, authorization_response=None,
686+
state: Optional[str] = '',
687+
client: Optional[object] =None,
688+
behaviour_args: Optional[dict] = None):
687689
"""
688690
There are a number of services where access tokens and ID tokens can
689691
occur in the response. This method goes through the possible places

0 commit comments

Comments
 (0)