-
Notifications
You must be signed in to change notification settings - Fork 29
Various changes #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various changes #39
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| from idpyoidc.server.endpoint import Endpoint | ||
| from idpyoidc.server.token.exception import UnknownToken | ||
| from idpyoidc.server.token.exception import WrongTokenClass | ||
| from idpyoidc.server.exception import ToOld | ||
|
|
||
| LOGGER = logging.getLogger(__name__) | ||
|
|
||
|
|
@@ -103,7 +104,7 @@ def process_request(self, request=None, release: Optional[list] = None, **kwargs | |
| _session_info = _context.session_manager.get_session_info_by_token( | ||
| request_token, grant=True | ||
| ) | ||
| except (UnknownToken, WrongTokenClass): | ||
| except (UnknownToken, WrongTokenClass, ToOld): | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is important to properly mark token with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Maybe this should be split into its own PR, along with the relevant test case.) |
||
| return {"response_args": _resp} | ||
|
|
||
| grant = _session_info["grant"] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a pointer to a function/method?
wouldn't it be better Optional[...]?