Skip to content
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 client authentication related fixes #49

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

ctriant
Copy link
Contributor

@ctriant ctriant commented Jan 23, 2023

No description provided.

@ctriant ctriant mentioned this pull request Jan 23, 2023
@@ -262,14 +262,15 @@ def _verify(
request: Optional[Union[dict, Message]] = None,
authorization_token: Optional[str] = None,
endpoint=None, # Optional[Endpoint]
get_client_id_from_token=None,
Copy link
Contributor Author

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[...]?

Originally posted by @peppelinux in #39 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a pointer to a function/method.
In verify_client in the same module it's defined to be:

get_client_id_from_token: Optional[Callable] = None

@@ -262,14 +262,15 @@ def _verify(
request: Optional[Union[dict, Message]] = None,
authorization_token: Optional[str] = None,
endpoint=None, # Optional[Endpoint]
get_client_id_from_token=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a pointer to a function/method.
In verify_client in the same module it's defined to be:

get_client_id_from_token: Optional[Callable] = None

@rohe rohe merged commit cd02bc7 into IdentityPython:develop Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants