public abstract class AuthorizationEndpointBase extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APP_INITIATED_FLOW |
protected AuthenticationManager |
authManager |
protected 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 |
Constructor and Description |
---|
AuthorizationEndpointBase(RealmModel realm,
EventBuilder event) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkRealm() |
protected void |
checkSsl() |
protected AuthenticationSessionModel |
createAuthenticationSession(ClientModel client,
String requestState) |
protected AuthenticationProcessor |
createProcessor(AuthenticationSessionModel authSession,
String flowId,
String flowPath) |
protected AuthenticationFlowModel |
getAuthenticationFlow(AuthenticationSessionModel authSession) |
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.
|
public static final String APP_INITIATED_FLOW
protected RealmModel realm
protected EventBuilder event
protected AuthenticationManager authManager
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected org.jboss.resteasy.spi.HttpRequest httpRequest
@Context protected KeycloakSession session
@Context protected 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(AuthenticationSessionModel authSession)
protected void checkSsl()
protected void checkRealm()
protected AuthenticationSessionModel createAuthenticationSession(ClientModel client, String requestState)
Copyright © 2020 JBoss by Red Hat. All rights reserved.