Custom RemoteAuthenticationHandler Exceptions #46212
Labels
area-auth
Includes: Authn, Authz, OAuth, OIDC, Bearer
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I would like to be able to handle exceptions thrown by AuthenticationHandlers, specifically RemoteAuthenticationHandlers. Generic example. Say something when wrong with authentication and I'd like to clear cookies.
aspnetcore/src/Security/Authentication/Core/src/HandleRequestResult.cs
Line 68 in b6bd323
aspnetcore/src/Security/Authentication/Core/src/RemoteAuthenticationHandler.cs
Line 130 in b6bd323
Describe the solution you'd like
Either a custom exception type so that we can create middleware to catch
or some way of plugging into the handling of errors.
Additional context
No response
The text was updated successfully, but these errors were encountered: