Class HttpAuthenticationChannelProvider
- java.lang.Object
-
- org.keycloak.protocol.oidc.grants.ciba.channel.HttpAuthenticationChannelProvider
-
- All Implemented Interfaces:
AuthenticationChannelProvider,Provider
public class HttpAuthenticationChannelProvider extends Object implements AuthenticationChannelProvider
- Author:
- Takashi Norimatsu
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHENTICATION_CHANNEL_IDprotected Map<String,String>clientAuthAttributesprotected Corscorsprotected javax.ws.rs.core.MultivaluedMap<String,String>formParamsprotected StringhttpAuthenticationChannelUriprotected RealmModelrealmprotected KeycloakSessionsession
-
Constructor Summary
Constructors Constructor Description HttpAuthenticationChannelProvider(KeycloakSession session, String httpAuthenticationRequestUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAuthenticationChannel()voidclose()protected SimpleHttpcompleteDecoupledAuthnRequest(SimpleHttp 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 Detail
-
AUTHENTICATION_CHANNEL_ID
public static final String AUTHENTICATION_CHANNEL_ID
- See Also:
- Constant Field Values
-
session
protected KeycloakSession session
-
realm
protected RealmModel realm
-
cors
protected Cors cors
-
httpAuthenticationChannelUri
protected final String httpAuthenticationChannelUri
-
-
Constructor Detail
-
HttpAuthenticationChannelProvider
public HttpAuthenticationChannelProvider(KeycloakSession session, String httpAuthenticationRequestUri)
-
-
Method Detail
-
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 SimpleHttp completeDecoupledAuthnRequest(SimpleHttp simpleHttp, AuthenticationChannelRequest channelRequest)
Extension point to allow subclass to override this method in order to add data to post to decoupled server.
-
-