-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
lua-resty-openidc requires issuer to be == to the discovery URL domain #219
Comments
The check is according to https://openid.net/specs/openid-connect-discovery-1_0.html#Impersonation but since |
I agree. Most likely we'll need yet another option unless we want to remove the check completely. |
Since we explicitly point the code to a Discovery document that is served from a TLS protected endpoint, there's no mapping between an identifier and the document that can be tampered with and I'm OK to comment out the check. |
OK, I've removed the check. |
I believe that is incorrect (https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier) ("correct me if im wrong! :)")
For ex you could have an issuer of
example.com
and a discovery URL ofhttps://example2.com/.well-known/openid-configuration
Auth0.com does this with custom auth domains, so I suspect anyone using that feature of auth0 with this library will eventually get this issue.
Error looks like:
The lib check is at:
lua-resty-openidc/lib/resty/openidc.lua
Lines 529 to 532 in 34fdf6e
@bodewig do you know more about this? I'm happy to send a PR that removes the check otherwise
The text was updated successfully, but these errors were encountered: