You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of Microsoft.IdentityModel are you using?
6.15.1
Where is the issue?
M.IM.Protocols
Is this a new or an existing app?
a. The app exists and I have upgraded to a new version of Microsoft.IdentityModel.* I got new version after updating Microsoft.AspNetCore.Authentication.JwtBearer to v 7.0.0
Repro
Try to expose discovery endpoint, which only works on HTTP/2
Expected behavior
Being able to call discovery endpoint and get metadata using HTTP/2
Actual behavior
Call to discovery endpoint to get metadata is only done via HTTP/1.1
Which version of Microsoft.IdentityModel are you using?
6.15.1
Where is the issue?
Is this a new or an existing app?
a. The app exists and I have upgraded to a new version of Microsoft.IdentityModel.* I got new version after updating
Microsoft.AspNetCore.Authentication.JwtBearer
to v 7.0.0Repro
Try to expose discovery endpoint, which only works on HTTP/2
Expected behavior
Being able to call discovery endpoint and get metadata using HTTP/2
Actual behavior
Call to discovery endpoint to get metadata is only done via HTTP/1.1
Possible solution
Change the code on https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/src/Microsoft.IdentityModel.Protocols/Configuration/HttpDocumentRetriever.cs#L123 using one of these solutions:
httpRequest.Version
tohttpClient.DefaultRequestVersion
.httpRequest.Version
HttpDocumentRetriever
code to useHttpClient.GetAsync
The text was updated successfully, but these errors were encountered: