-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
OIDC Issuer Verification #16384
Comments
/cc @sberyozkin PS: not sure I chose the right label |
@famod it is fine, thanks, I also added |
@eddiecarpenter Hi, what happens if you do not configure |
What Quarkus version is it ? Can you try |
Microsoft's well-known service is at https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration and it returns https://login.microsoftonline.com/{tenantid}/v2.0 as the issuer. If I do not configure the issuer it defaults to https://login.microsoftonline.com/{tenantid}/v2.0 |
@eddiecarpenter does it work now :-) ? |
I am using the latest version 1.13.1-Final :-) For completes my configuration is as follows. I have X'd the sensitive fields out.
|
OK, so believe it works now, thanks |
No, it does not work as expected. If I define an issuer with a known tenant-id the oidc mechanism works. As explain above, the problem is that the issuer value returned is dynamic and unknown at configuration/startup time. |
My apologies, I somehow clicked on the wrong link and closed the issue. |
@eddiecarpenter I'm getting confused - sorry, so why did you close the issue ? and,
Do you mean the literal |
@eddiecarpenter OK, np :-) |
Microsoft literally returns |
@eddiecarpenter Got it - thanks. Well, yeah, in this case we can't match it - unless we start going the JAX-RS path and take |
@eddiecarpenter Ok, we'll sort it out - in meantime, here is a workaround: Set |
Thanks |
The returned issuer value of the authentication provider is compared the configured issuer value and if there is a mismatch the authentication fails.
The problem I am experiencing is that we are using Microsoft's authentication (Azure) allowing multiple Microsoft tenants to access our system. The Issuer string on their side is defined as https://login.microsoftonline.com/{tenantid}/v2.0 where the {tenantid} is the tenant the user belongs too. In other word the Issuer is dynamic and cannot be defined at configuration time!
My suggested solutions are:
Eddie
The text was updated successfully, but these errors were encountered: