public abstract class AuthorizationEndpointBase extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthenticationManager |
authManager |
protected ClientConnection |
clientConnection |
protected EventBuilder |
event |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected RealmModel |
realm |
protected org.jboss.resteasy.spi.HttpRequest |
request |
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 javax.ws.rs.core.Response |
buildRedirectToIdentityProvider(String providerId,
String accessCode) |
protected AuthenticationProcessor |
createProcessor(ClientSessionModel clientSession,
String flowId,
String flowPath) |
protected AuthenticationFlowModel |
getAuthenticationFlow() |
protected javax.ws.rs.core.Response |
handleBrowserAuthenticationRequest(ClientSessionModel clientSession,
LoginProtocol protocol,
boolean isPassive,
boolean redirectToAuthentication)
Common method to handle browser authentication request in protocols unified way.
|
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 request
@Context protected KeycloakSession session
@Context protected ClientConnection clientConnection
public AuthorizationEndpointBase(RealmModel realm, EventBuilder event)
protected AuthenticationProcessor createProcessor(ClientSessionModel clientSession, String flowId, String flowPath)
protected javax.ws.rs.core.Response handleBrowserAuthenticationRequest(ClientSessionModel clientSession, LoginProtocol protocol, boolean isPassive, boolean redirectToAuthentication)
clientSession
- 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()
Copyright © 2016 JBoss by Red Hat. All rights reserved.