Interface RedirectAuthHandler
- All Superinterfaces:
AuthenticationHandler, Handler<RoutingContext>
An auth handler that's used to handle auth by redirecting user to a custom login page.
- Author:
- Tim Fox
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic RedirectAuthHandlercreate(AuthenticationProvider authProvider) Create a handlerstatic RedirectAuthHandlercreate(AuthenticationProvider authProvider, String loginRedirectURL) Create a handlerstatic RedirectAuthHandlercreate(AuthenticationProvider authProvider, String loginRedirectURL, String returnURLParam) Create a handler
-
Field Details
-
DEFAULT_LOGIN_REDIRECT_URL
Default path the user will be redirected to- See Also:
-
DEFAULT_RETURN_URL_PARAM
Default name of param used to store return url information in session- See Also:
-
-
Method Details
-
create
Create a handler- Parameters:
authProvider- the auth service to use- Returns:
- the handler
-
create
Create a handler- Parameters:
authProvider- the auth service to useloginRedirectURL- the url to redirect the user to- Returns:
- the handler
-
create
static RedirectAuthHandler create(AuthenticationProvider authProvider, String loginRedirectURL, String returnURLParam) Create a handler- Parameters:
authProvider- the auth service to useloginRedirectURL- the url to redirect the user toreturnURLParam- the name of param used to store return url information in session- Returns:
- the handler
-