Interface RouteAccessDeniedHandler

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    StandardAuthenticationHandlers

    public interface RouteAccessDeniedHandler
    extends Serializable
    Handles when a fully authenticated user has been denied access to a route, e.g. by navigating to a different route and/or showing an error message. No further attempt to login the user needs to be made here.

    Alternatively, you can create an error view implementing HasErrorParameter for RouteAccessDeniedException. This should have all the same possibilities as the RouteAccessDeniedHandler.

    • Method Detail

      • handleAccessDenied

        void handleAccessDenied​(com.vaadin.flow.router.BeforeEnterEvent event)
        Called after a fully authenticated user has been denied access to a route.
        Parameters:
        event - navigation event with event details while trying to access the secured route