public interface FormLoginHandler extends Handler<RoutingContext>
Used in conjunction with the RedirectAuthHandler
.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PASSWORD_PARAM
The default value of the form attribute which will contain the password
|
static String |
DEFAULT_RETURN_URL_PARAM
The default value of the form attribute which will contain the return url
|
static String |
DEFAULT_USERNAME_PARAM
The default value of the form attribute which will contain the username
|
Modifier and Type | Method and Description |
---|---|
static FormLoginHandler |
create(AuthProvider authProvider)
Create a handler
|
static FormLoginHandler |
create(AuthProvider authProvider,
String usernameParam,
String passwordParam,
String returnURLParam)
Create a handler
|
static final String DEFAULT_USERNAME_PARAM
static final String DEFAULT_PASSWORD_PARAM
static final String DEFAULT_RETURN_URL_PARAM
static FormLoginHandler create(AuthProvider authProvider)
authProvider
- the auth service to usestatic FormLoginHandler create(AuthProvider authProvider, String usernameParam, String passwordParam, String returnURLParam)
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 form attribute which will contain the return urlCopyright © 2015. All Rights Reserved.