Mitch
Why do my Admin controllers trigger OnRemoteFailure in ConfigureOpenIdConnectOptions when using cust
Additionally, based on whether I choose to add the SigmaSSO to the authbuilder first or the EntraIdOIDC to the authbuilder first, I always get an error
it either throws for one or the other in my app
3 replies
Why do my Admin controllers trigger OnRemoteFailure in ConfigureOpenIdConnectOptions when using cust
I also have this event configured in
ConfigureOpenIdConnectOptions
:
For my controllers, I have the following attributes:
Admin Controllers:
Frontend Controllers:
ConfigureAzureAdConnectOptions only contains basic information as such:
The problem I'm encountering is that when I access any of my Admin controllers, the OnRemoteFailure
event is triggered from the ConfigureOpenIdConnectOptions
class, which causes a redirect to the homepage. I expect this event to trigger only on OpenID Connect-related failures, but it is happening consistently when accessing admin routes.
Why are my Admin controllers triggering the OnRemoteFailure event from ConfigureOpenIdConnectOptions? How can I prevent this behavior and ensure it only triggers on legitimate OpenID Connect failures?
Additional Information:
* I am using ASP.NET Core 8.0.
* The "AdminSection" policy is configured to use the EntraIdOIDC scheme, which I believe should map to Azure AD authentication.
* The "FrontEnd" policy uses the SigmaSSO OpenID Connect scheme.3 replies