-
Notifications
You must be signed in to change notification settings - Fork 694
skipIssuerCheck flag is ignored #492
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
Comments
Looking at the code, this might be intentional (if I read/understand it right). The angular-oauth2-oidc/projects/lib/src/oauth-service.ts Lines 480 to 490 in 0274cf5
The error you describe is thrown here, inside the angular-oauth2-oidc/projects/lib/src/oauth-service.ts Lines 1503 to 1506 in 0274cf5
Not sure if this was intentional or is a bug, but either way there seems to be no way to skip validation of the issuer mentioned in the If you'd want that, the only things to do seem to be:
Not sure from the top of my head if it makes sense to have the check only in one case, someone else might chip in on that. |
In my opinion, I think that either the flag should be checked in the second case too or this quirk be documented. Regardless, I decided to substitute |
Yeah, in my opinion the validation inside processIdToken is wrong. In my case the issuer returned by /.well-known/openid-configuration changes deppeding on the server that receives the request and i cannot change it (corporative nonsense). So skipIssuerCheck is important and the fix inside the processIdToken is needed. |
@jeroenheijmans are you going to implement this ? Thanks. |
@ismcagdas Nope, wasn't planning on writing a PR for this. All yours if you feel like it! |
…ssuerCheck is true
Done, #527 |
Whats the status of PR #527? |
I ran into an issue where configuring the library without a discovery document causes an wrong issuer error to be thrown even though skipIssuerCheck is true.
The text was updated successfully, but these errors were encountered: