public class LoginActionsService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_COOKIE |
static String |
AUTHENTICATE_PATH |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected static org.jboss.logging.Logger |
logger |
protected javax.ws.rs.ext.Providers |
providers |
static String |
REGISTRATION_PATH |
static String |
REQUIRED_ACTION |
static String |
RESET_CREDENTIALS_PATH |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
LoginActionsService(RealmModel realm,
AuthenticationManager authManager,
EventBuilder event) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
authenticate(String code,
String execution)
protocol independent login page entry point
|
javax.ws.rs.core.Response |
authenticateForm(String code,
String execution)
URL called after login page.
|
static javax.ws.rs.core.UriBuilder |
authenticationFormProcessor(javax.ws.rs.core.UriInfo uriInfo) |
static void |
createActionCookie(RealmModel realm,
javax.ws.rs.core.UriInfo uriInfo,
org.keycloak.common.ClientConnection clientConnection,
String sessionId) |
javax.ws.rs.core.Response |
emailVerification(String code,
String key) |
javax.ws.rs.core.Response |
executeActions(String key)
Initiated by admin, not the user on login
|
static javax.ws.rs.core.UriBuilder |
loginActionsBaseUrl(javax.ws.rs.core.UriBuilder baseUriBuilder) |
static javax.ws.rs.core.UriBuilder |
loginActionsBaseUrl(javax.ws.rs.core.UriInfo uriInfo) |
protected javax.ws.rs.core.Response |
processAuthentication(String execution,
ClientSessionModel clientSession,
String errorMessage) |
javax.ws.rs.core.Response |
processConsent(javax.ws.rs.core.MultivaluedMap<String,String> formData)
OAuth grant page.
|
protected javax.ws.rs.core.Response |
processFlow(String execution,
ClientSessionModel clientSession,
String flowPath,
AuthenticationFlowModel flow,
String errorMessage) |
javax.ws.rs.core.Response |
processRegister(String code,
String execution)
Registration
|
protected javax.ws.rs.core.Response |
processRegistration(String execution,
ClientSessionModel clientSession,
String errorMessage) |
javax.ws.rs.core.Response |
processRequireAction(String code,
String action) |
protected javax.ws.rs.core.Response |
processResetCredentials(String execution,
ClientSessionModel clientSession,
String errorMessage) |
javax.ws.rs.core.Response |
registerPage(String code,
String execution)
protocol independent registration page entry point
|
static javax.ws.rs.core.UriBuilder |
registrationFormProcessor(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
requiredActionGET(String code,
String action) |
javax.ws.rs.core.Response |
requiredActionPOST(String code,
String action) |
static javax.ws.rs.core.UriBuilder |
requiredActionProcessor(javax.ws.rs.core.UriInfo uriInfo) |
protected javax.ws.rs.core.Response |
resetCredentials(String code,
String execution) |
javax.ws.rs.core.Response |
resetCredentialsGET(String code,
String execution)
Endpoint for executing reset credentials flow.
|
javax.ws.rs.core.Response |
resetCredentialsPOST(String code,
String execution) |
protected static final org.jboss.logging.Logger logger
public static final String ACTION_COOKIE
public static final String AUTHENTICATE_PATH
public static final String REGISTRATION_PATH
public static final String RESET_CREDENTIALS_PATH
public static final String REQUIRED_ACTION
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected javax.ws.rs.ext.Providers providers
@Context protected KeycloakSession session
public LoginActionsService(RealmModel realm, AuthenticationManager authManager, EventBuilder event)
public static javax.ws.rs.core.UriBuilder loginActionsBaseUrl(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder authenticationFormProcessor(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder requiredActionProcessor(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder registrationFormProcessor(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder loginActionsBaseUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
public javax.ws.rs.core.Response authenticate(String code, String execution)
code - protected javax.ws.rs.core.Response processAuthentication(String execution, ClientSessionModel clientSession, String errorMessage)
protected javax.ws.rs.core.Response processFlow(String execution, ClientSessionModel clientSession, String flowPath, AuthenticationFlowModel flow, String errorMessage)
public javax.ws.rs.core.Response authenticateForm(String code, String execution)
code - public javax.ws.rs.core.Response resetCredentialsPOST(String code, String execution)
public javax.ws.rs.core.Response resetCredentialsGET(String code, String execution)
code - execution - protected javax.ws.rs.core.Response resetCredentials(String code, String execution)
protected javax.ws.rs.core.Response processResetCredentials(String execution, ClientSessionModel clientSession, String errorMessage)
protected javax.ws.rs.core.Response processRegistration(String execution, ClientSessionModel clientSession, String errorMessage)
public javax.ws.rs.core.Response registerPage(String code, String execution)
code - public javax.ws.rs.core.Response processRegister(String code, String execution)
code - public javax.ws.rs.core.Response processConsent(javax.ws.rs.core.MultivaluedMap<String,String> formData)
formData - public javax.ws.rs.core.Response executeActions(String key)
key - public static void createActionCookie(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, org.keycloak.common.ClientConnection clientConnection, String sessionId)
Copyright © 2015 JBoss by Red Hat. All rights reserved.