IssuerAddress not being set in OpenidConnectHandler.HandleChallengeAsyncInternal #55774
Closed
1 task done
Labels
area-security
External
This is an issue in a component not contained in this repository. It is open for tracking purposes.
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Describe the bug
I'm using the AddOpenidConnect extension method to configure OpendidConnect to work with our Keycloak IDP. Whenever the Challenge is requested, I receive an error: "Cannot redirect to the authorization endpoint, the configuration may be missing or invalid." (Line 485 of the HandleChallengeAsyncInternal).
It appears that this is supposed to be set when the configuration manager reads the OIDC configuration from the .well-known endpoint of my IDP. (Line 402) It seems as though the manager is unable to read the IDP configuration or is unable to pull out the authorization_endpoint property of my IDP configuration.
Expected Behavior
When the Challenge is required, the OpenidConnectHandler should redirect the browser to the authorization_endpoint that is defined in the well-known endpoint of the IDP configured using the AddOpenidConnect extension method.
Steps To Reproduce
Here is the configuration in program.cs
Here is the configuration returned by the metadata endpoint.
Exceptions (if any)
.NET Version
8.0.100
Anything else?
This is an Asp.NET Core 8.0 MVC application.
I'm running in VS 2022
The text was updated successfully, but these errors were encountered: