public class LoginActionsService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_COOKIE |
static String |
AUTHENTICATE_PATH |
static String |
FIRST_BROKER_LOGIN_PATH |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected static org.jboss.logging.Logger |
logger |
static String |
POST_BROKER_LOGIN_PATH |
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) |
protected javax.ws.rs.core.Response |
brokerLoginFlow(String code,
String execution,
boolean firstBrokerLogin) |
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
|
javax.ws.rs.core.Response |
firstBrokerLoginGet(String code,
String execution) |
javax.ws.rs.core.Response |
firstBrokerLoginPost(String code,
String execution) |
static javax.ws.rs.core.UriBuilder |
firstBrokerLoginProcessor(javax.ws.rs.core.UriInfo uriInfo) |
static String |
getActionCookie(javax.ws.rs.core.HttpHeaders headers,
RealmModel realm,
javax.ws.rs.core.UriInfo uriInfo,
org.keycloak.common.ClientConnection clientConnection) |
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) |
javax.ws.rs.core.Response |
postBrokerLoginGet(String code,
String execution) |
javax.ws.rs.core.Response |
postBrokerLoginPost(String code,
String execution) |
static javax.ws.rs.core.UriBuilder |
postBrokerLoginProcessor(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,
AuthenticationProcessor processor) |
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
public static final String FIRST_BROKER_LOGIN_PATH
public static final String POST_BROKER_LOGIN_PATH
@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 firstBrokerLoginProcessor(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder postBrokerLoginProcessor(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, AuthenticationProcessor processor)
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 firstBrokerLoginGet(String code, String execution)
public javax.ws.rs.core.Response firstBrokerLoginPost(String code, String execution)
public javax.ws.rs.core.Response postBrokerLoginGet(String code, String execution)
public javax.ws.rs.core.Response postBrokerLoginPost(String code, String execution)
protected javax.ws.rs.core.Response brokerLoginFlow(String code, String execution, boolean firstBrokerLogin)
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 String getActionCookie(javax.ws.rs.core.HttpHeaders headers, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, org.keycloak.common.ClientConnection clientConnection)
public static void createActionCookie(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, org.keycloak.common.ClientConnection clientConnection, String sessionId)
Copyright © 2016 JBoss by Red Hat. All rights reserved.