@groovy.transform.CompileStatic class FormLoginHandler extends java.lang.Object
Handler that handles login from a form on a custom login page.
Used in conjunction with the RedirectAuthHandler.
Constructor and description |
---|
FormLoginHandler
(java.lang.Object delegate) |
Type | Name and description |
---|---|
static FormLoginHandler |
create(AuthProvider authProvider) Create a handler |
static FormLoginHandler |
create(AuthProvider authProvider, java.lang.String usernameParam, java.lang.String passwordParam, java.lang.String returnURLParam, java.lang.String directLoggedInOKURL) Create a handler |
java.lang.Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
FormLoginHandler |
setDirectLoggedInOKURL(java.lang.String directLoggedInOKURL) Set the url to redirect to if the user logs in directly at the url of the form login handler without being redirected here first |
FormLoginHandler |
setPasswordParam(java.lang.String passwordParam) Set the name of the form param used to submit the password |
FormLoginHandler |
setReturnURLParam(java.lang.String returnURLParam) Set the name of the session attrioute used to specify the return url |
FormLoginHandler |
setUsernameParam(java.lang.String usernameParam) Set the name of the form param used to submit the username |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a handler
authProvider
- the auth service to useCreate a handler
authProvider
- the auth service to useusernameParam
- the value of the form attribute which will contain the usernamepasswordParam
- the value of the form attribute which will contain the passwordreturnURLParam
- the value of the session attribute which will contain the return urldirectLoggedInOKURL
- a url to redirect to if the user logs in directly at the url of the form login handler without being redirected here firstSet the url to redirect to if the user logs in directly at the url of the form login handler without being redirected here first
directLoggedInOKURL
- the URL to redirect toSet the name of the form param used to submit the password
passwordParam
- the name of the paramSet the name of the session attrioute used to specify the return url
returnURLParam
- the name of the paramSet the name of the form param used to submit the username
usernameParam
- the name of the param