MultiUnauthorizedHandler
Handles authentication failure for routes protected by authenticateWithAnyOf.
The handler receives the current RoutingContext. The map contains one AuthenticationFailedCause for each scheme name that failed to authenticate the call.
The handler is expected to respond to the call, for example, with an error status or a redirect. If it completes without responding, the default challenges of the schemes run, and the call is rejected with 401 Unauthorized when no challenge responds either; the route handler never runs for a failed authentication.
Functions
Link copied to clipboard
abstract suspend fun RoutingContext.onUnauthorized(failures: Map<String, AuthenticationFailedCause>)