-
Notifications
You must be signed in to change notification settings - Fork 485
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
Configurable JWT Issuer for the OIDC Discovery Provider #5657
Configurable JWT Issuer for the OIDC Discovery Provider #5657
Conversation
Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
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.
This looks pretty good overall to me, but I see some of the Windows OIDC Discovery Provider tests that were added in this PR are failing. @aluthra-37, would you mind fixing those up?
Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com>
b468464
to
c3663a4
Compare
This change has a bug.... When setting the issuer:
The generated oidc config:
Does not have the contacting port in the jwks_url, so it is invalid. The issuer override should only apply to issuer. |
It also now ignores the hostname contacted in favor of the hostname in jwt_issuer making the domains allowlist only work with the jwt_issuer as the entry. It allows any hostname in. This does not seem to be correct behavior. I think we need to talk more about the indended use cases. For my use case, I only need issuer set to jwt_issuer and nothing more. |
* Adding support for configurable jwt issuer + test cases Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> * Moving verifyhost check + adding more test cases Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> * Adding test case of jwt issuer with just a host Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> * Updating readme docs + fixing spacing Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> * Fixing spacing in readme table Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> * fixing windows test cases + minor refactor Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> --------- Signed-off-by: Luthra, Ayush <Ayush.Luthra@fmr.com> Signed-off-by: gajibade <gajibade@bloomberg.net>
Pull Request check list
Affected functionality
Added a config item to the OIDC provider (jwt_issuer). This config specifies the issuer for the OIDC provider configuration request. Previously, only the request host could be the issuer. This change allows users to define a different JWT issuer with a path.
Description of change
Which issue this PR fixes
Fix for #5480