-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Microsoft.IdentityModel.Protocols.OpenIdConnect version 7+ does not read at least couple of properties (Issuers, IssuerSigningKeys JwksUri) #52330
Comments
I've encountered the same issue. Is there a solution? |
@DyByronWu See the following thread : #52296 (comment) |
Based on your repro, it looks like there is no aspnetcore dependency in your app. The GitHub repo for Microsoft.IdentityModel.Protocols.OpenIdConnect and other Microsoft.IdentityModel packages is at https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet, so I encourage you to file this issue there if you're still having issues. I would transfer it myself, but that's not possible between GitHub orgs. I saw that you mentioned that this is the same issue as #52296. If that's the case, I think there is a misunderstanding. The I don't see why your repro code is working for you. It's simple enough, I tried it myself even though I don't work on IdentityModel directly, and everything seems to work with
|
@halter73 Why are you closing this issue? The parsing behind OpenConfigurationRetriver, has problems parsing this section, seems to be much more strict on what properties are supported with what types. Example of the section: Everything after this section is ignored by OpenConfigurationRetriver |
Can you please file the issue at https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet with a reference to this issue and details about "mtls_endpoint_aliases"? That's where |
They have currently fixed some critical bugs along with this one in version 7.4.0 of OpenIdConnect package. I would recommend that the JwtBearer package will be update to use 7.4.0 OpenIdConnect package. It´s now using this: Microsoft.IdentityModel.Protocols.OpenIdConnect/ (>= 7.1.2) a workaround is installing Microsoft.IdentityModel.Protocols.OpenIdConnect version 7.4.0 of after installing JwtBearer package. |
Is there an existing issue for this?
Describe the bug
There is a bug in
This worked in version 6 and below.
This also affects the JwtBearer package which depends on OpenIdConnect (When JwtBearer is upgraded to version 8, you will be using 7.0.3 of OpenIdConnect)
version 7+
Expected Behavior
By using our Console app example (in Steps to Reproduce)
JwksUri has value and is written to the screen. (Expected)
same goes for Issuers and SigningKeys (Expected)
This used to work in version 6. But broke in version 7+
Steps To Reproduce
Console app to reproduce the problem:
Install nuget package Microsoft.IdentityModel.Protocols.OpenIdConnect 7.0.3
Exceptions (if any)
No response
.NET Version
8
Anything else?
No response
The text was updated successfully, but these errors were encountered: