Class HttpAuthenticationChannelProvider
java.lang.Object
org.keycloak.protocol.oidc.grants.ciba.channel.HttpAuthenticationChannelProvider
- All Implemented Interfaces:
AuthenticationChannelProvider,org.keycloak.provider.Provider
public class HttpAuthenticationChannelProvider
extends Object
implements AuthenticationChannelProvider
- Author:
- Takashi Norimatsu
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpAuthenticationChannelProvider(org.keycloak.models.KeycloakSession session, String httpAuthenticationRequestUri) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidclose()protected org.keycloak.http.simple.SimpleHttpRequestcompleteDecoupledAuthnRequest(org.keycloak.http.simple.SimpleHttpRequest simpleHttp, AuthenticationChannelRequest channelRequest) Extension point to allow subclass to override this method in order to add data to post to decoupled server.booleanrequestAuthentication(CIBAAuthenticationRequest request, String infoUsedByAuthenticator) Request the authentication(AuthN) and authorization(AuthZ) by an authentication device (AD) to the external entity via Authentication Channel.
-
Field Details
-
AUTHENTICATION_CHANNEL_ID
- See Also:
-
session
protected org.keycloak.models.KeycloakSession session -
formParams
-
realm
protected org.keycloak.models.RealmModel realm -
clientAuthAttributes
-
cors
protected org.keycloak.services.cors.Cors cors -
httpAuthenticationChannelUri
-
-
Constructor Details
-
HttpAuthenticationChannelProvider
public HttpAuthenticationChannelProvider(org.keycloak.models.KeycloakSession session, String httpAuthenticationRequestUri)
-
-
Method Details
-
requestAuthentication
public boolean requestAuthentication(CIBAAuthenticationRequest request, String infoUsedByAuthenticator) Description copied from interface:AuthenticationChannelProviderRequest the authentication(AuthN) and authorization(AuthZ) by an authentication device (AD) to the external entity via Authentication Channel.- Specified by:
requestAuthenticationin interfaceAuthenticationChannelProvider- Parameters:
request- the representation of Authentication Request received on Backchannel Authentication EndpointinfoUsedByAuthenticator- some value to help the AD to identify the user- Returns:
-
checkAuthenticationChannel
protected void checkAuthenticationChannel() -
completeDecoupledAuthnRequest
protected org.keycloak.http.simple.SimpleHttpRequest completeDecoupledAuthnRequest(org.keycloak.http.simple.SimpleHttpRequest simpleHttp, AuthenticationChannelRequest channelRequest) Extension point to allow subclass to override this method in order to add data to post to decoupled server. -
close
public void close()- Specified by:
closein interfaceorg.keycloak.provider.Provider
-