public abstract class AuthorizationEndpointBase extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AuthorizationEndpointBase.AuthorizationEndpointChecks |
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_INITIATED_FLOW |
protected AuthenticationManager |
authManager |
protected org.keycloak.common.ClientConnection |
clientConnection |
protected EventBuilder |
event |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected org.jboss.resteasy.spi.HttpRequest |
httpRequest |
protected RealmModel |
realm |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
AuthorizationEndpointBase(RealmModel realm,
EventBuilder event) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRealm() |
protected void |
checkSsl() |
protected AuthenticationProcessor |
createProcessor(AuthenticationSessionModel authSession,
String flowId,
String flowPath) |
protected AuthenticationFlowModel |
getAuthenticationFlow() |
protected AuthorizationEndpointBase.AuthorizationEndpointChecks |
getOrCreateAuthenticationSession(ClientModel client,
String requestState) |
protected javax.ws.rs.core.Response |
handleBrowserAuthenticationRequest(AuthenticationSessionModel authSession,
LoginProtocol protocol,
boolean isPassive,
boolean redirectToAuthentication)
Common method to handle browser authentication request in protocols unified way.
|
protected abstract boolean |
isNewRequest(AuthenticationSessionModel authSession,
ClientModel clientFromRequest,
String requestState) |
public static final String APP_INITIATED_FLOW
protected RealmModel realm
protected EventBuilder event
protected AuthenticationManager authManager
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected org.jboss.resteasy.spi.HttpRequest httpRequest
@Context protected KeycloakSession session
@Context protected org.keycloak.common.ClientConnection clientConnection
public AuthorizationEndpointBase(RealmModel realm, EventBuilder event)
protected AuthenticationProcessor createProcessor(AuthenticationSessionModel authSession, String flowId, String flowPath)
protected javax.ws.rs.core.Response handleBrowserAuthenticationRequest(AuthenticationSessionModel authSession, LoginProtocol protocol, boolean isPassive, boolean redirectToAuthentication)
authSession - for current requestprotocol - handler for protocol used to initiate loginisPassive - set to true if login should be passive (without login screen shown)redirectToAuthentication - if true redirect to flow url. If initial call to protocol is a POST, you probably want to do this. This is so we can disable the back button on browserprotected AuthenticationFlowModel getAuthenticationFlow()
protected void checkSsl()
protected void checkRealm()
protected AuthorizationEndpointBase.AuthorizationEndpointChecks getOrCreateAuthenticationSession(ClientModel client, String requestState)
protected abstract boolean isNewRequest(AuthenticationSessionModel authSession, ClientModel clientFromRequest, String requestState)
Copyright © 2017 JBoss by Red Hat. All rights reserved.