-
Notifications
You must be signed in to change notification settings - Fork 258
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
Fixes to make the library work correctly, some fixes to the "simple" example and some internal documentation. #803
base: master
Are you sure you want to change the base?
Changes from all commits
b9e18b6
e22e228
0cd2944
897a652
1e98232
ce469a9
2e4e6a6
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 |
---|---|---|
|
@@ -298,7 +298,7 @@ def verify_id_token(instance, check_hash=False, **kwargs): | |
|
||
if "keyjar" in kwargs: | ||
try: | ||
if _body["iss"] not in kwargs["keyjar"]: | ||
if _body["iss"] not in kwargs["iss"]: | ||
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 is checking if we have the needed key to make the signature and/or encryption. |
||
raise ValueError("Unknown issuer") | ||
except KeyError: | ||
raise MissingRequiredAttribute("iss") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,6 +255,9 @@ def __init__( | |
logout_path="", | ||
settings: PyoidcSettings = None, | ||
): | ||
""" | ||
:param name the iss, which is the URI of the OP. | ||
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. I would rather use the 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. I will take a look at it, thanks for your advice. |
||
""" | ||
self.settings = settings or OicProviderSettings() | ||
if verify_ssl is not None: | ||
warnings.warn( | ||
|
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.
All the content should be in the
request_args
, thekwargs
can potentially contain bad arguments.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.
My problem is that if I don't add the request args manually from kwargs these arguments like client_id, redirect_uri passed to the oic.oic. construct_AuthenticationRequest method are never added to the authentication request. So, if I'm not doing anything else wrong, there is a problem when picking the args passed to this method because if I run my app with the authenticationRequest method detailed below without my changes the redirect_uri arg in the authentication request made to the OP is equal to "h". When I use the python debug console to print session["client"].registration_response["redirect_uris"][0] its value is 'https://localhost:8080/authenticateDigitelTS' and therefore it's correct.
I don't know if the problem is because of these arguments never being added to request_args in oic.oauth2.construct_AuthorizationRequest or there is an error in any other place because I don't know all the implementation details of the library that well. Maybe you can point me in the right direction. Thanks for your help, have a good day.
PD: I will check google documentation conventions for future PRs