Package org.keycloak.protocol.docker
Class DockerAuthV2Protocol
- java.lang.Object
-
- org.keycloak.protocol.docker.DockerAuthV2Protocol
-
- All Implemented Interfaces:
LoginProtocol
,Provider
public class DockerAuthV2Protocol extends Object implements LoginProtocol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.protocol.LoginProtocol
LoginProtocol.Error
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCOUNT_PARAM
static String
ISO_8601_DATE_FORMAT
static String
ISSUER
protected static org.jboss.logging.Logger
logger
static String
LOGIN_PROTOCOL
static String
SCOPE_PARAM
static String
SERVICE_PARAM
-
Constructor Summary
Constructors Constructor Description DockerAuthV2Protocol()
DockerAuthV2Protocol(KeycloakSession session, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders headers, EventBuilder event)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.protocol.LoginProtocol
sendPushRevocationPolicyRequest
-
-
-
-
Field Detail
-
logger
protected static final org.jboss.logging.Logger logger
-
LOGIN_PROTOCOL
public static final String LOGIN_PROTOCOL
- See Also:
- Constant Field Values
-
ACCOUNT_PARAM
public static final String ACCOUNT_PARAM
- See Also:
- Constant Field Values
-
SERVICE_PARAM
public static final String SERVICE_PARAM
- See Also:
- Constant Field Values
-
SCOPE_PARAM
public static final String SCOPE_PARAM
- See Also:
- Constant Field Values
-
ISSUER
public static final String ISSUER
- See Also:
- Constant Field Values
-
ISO_8601_DATE_FORMAT
public static final String ISO_8601_DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DockerAuthV2Protocol
public DockerAuthV2Protocol()
-
DockerAuthV2Protocol
public DockerAuthV2Protocol(KeycloakSession session, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders headers, EventBuilder event)
-
-
Method Detail
-
setSession
public LoginProtocol setSession(KeycloakSession session)
- Specified by:
setSession
in interfaceLoginProtocol
-
setRealm
public LoginProtocol setRealm(RealmModel realm)
- Specified by:
setRealm
in interfaceLoginProtocol
-
setUriInfo
public LoginProtocol setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
setUriInfo
in interfaceLoginProtocol
-
setHttpHeaders
public LoginProtocol setHttpHeaders(javax.ws.rs.core.HttpHeaders headers)
- Specified by:
setHttpHeaders
in interfaceLoginProtocol
-
setEventBuilder
public LoginProtocol setEventBuilder(EventBuilder event)
- Specified by:
setEventBuilder
in interfaceLoginProtocol
-
authenticated
public javax.ws.rs.core.Response authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx)
- Specified by:
authenticated
in interfaceLoginProtocol
-
sendError
public javax.ws.rs.core.Response sendError(AuthenticationSessionModel clientSession, LoginProtocol.Error error)
- Specified by:
sendError
in interfaceLoginProtocol
-
backchannelLogout
public javax.ws.rs.core.Response backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession)
- Specified by:
backchannelLogout
in interfaceLoginProtocol
-
frontchannelLogout
public javax.ws.rs.core.Response frontchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession)
- Specified by:
frontchannelLogout
in interfaceLoginProtocol
-
finishBrowserLogout
public javax.ws.rs.core.Response finishBrowserLogout(UserSessionModel userSession, AuthenticationSessionModel logoutSession)
Description copied from interface:LoginProtocol
This method is called when browser logout is going to be finished. It is not triggered during backchannel logout- Specified by:
finishBrowserLogout
in interfaceLoginProtocol
- Parameters:
userSession
- user session, which was logged outlogoutSession
- authentication session, which was used during logout to track the logout state- Returns:
- response to be sent to the client
-
requireReauthentication
public boolean requireReauthentication(UserSessionModel userSession, AuthenticationSessionModel clientSession)
- Specified by:
requireReauthentication
in interfaceLoginProtocol
- Returns:
- true if SSO cookie authentication can't be used. User will need to "actively" reauthenticate
-
-