Class FederatedJWTClientAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.client.AbstractClientAuthenticator
org.keycloak.authentication.authenticators.client.FederatedJWTClientAuthenticator
- All Implemented Interfaces:
ClientAuthenticator
,ClientAuthenticatorFactory
,ConfigurableAuthenticatorFactory
,ConfiguredPerClientProvider
,ConfiguredProvider
,EnvironmentDependentProviderFactory
,Provider
,ProviderFactory<ClientAuthenticator>
public class FederatedJWTClientAuthenticator
extends AbstractClientAuthenticator
implements EnvironmentDependentProviderFactory
-
Field Summary
FieldsFields inherited from interface org.keycloak.authentication.ConfigurableAuthenticatorFactory
REQUIREMENT_CHOICES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initial call for the authenticator.getAdapterConfiguration
(ClientModel client) Get configuration, which needs to be used for adapter ( keycloak.json ) of particular client.List of config properties for this client implementation.Friendly name for the authenticatorgetId()
getProtocolAuthenticatorMethods
(String loginProtocol) Get authentication methods for the specified protocolWhat requirement settings are allowed.boolean
Is this authenticator configurable globally?boolean
isSupported
(Config.Scope config) Check if the provider is supported and should be available based on the provider configuration.protected static String
Methods inherited from class org.keycloak.authentication.authenticators.client.AbstractClientAuthenticator
close, create, create, getReferenceCategory, init, isUserSetupAllowed, postInit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.authentication.ClientAuthenticatorFactory
supportsSecret
Methods inherited from interface org.keycloak.authentication.ConfigurableAuthenticatorFactory
getOptionalReferenceCategories
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
PROVIDER_ID
- See Also:
-
JWT_CREDENTIAL_ISSUER_KEY
- See Also:
-
JWT_CREDENTIAL_SUBJECT_KEY
- See Also:
-
-
Constructor Details
-
FederatedJWTClientAuthenticator
public FederatedJWTClientAuthenticator()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<ClientAuthenticator>
-
authenticateClient
Description copied from interface:ClientAuthenticator
Initial call for the authenticator. This method should check the current HTTP request to determine if the request satisfies the ClientAuthenticator's requirements. If it doesn't, it should send back a challenge response by calling the ClientAuthenticationFlowContext.challenge(Response).- Specified by:
authenticateClient
in interfaceClientAuthenticator
-
getDisplayType
Description copied from interface:ConfigurableAuthenticatorFactory
Friendly name for the authenticator- Specified by:
getDisplayType
in interfaceConfigurableAuthenticatorFactory
- Returns:
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getRequirementChoices
Description copied from interface:ConfigurableAuthenticatorFactory
What requirement settings are allowed.- Specified by:
getRequirementChoices
in interfaceConfigurableAuthenticatorFactory
- Returns:
-
isConfigurable
public boolean isConfigurable()Description copied from interface:ClientAuthenticatorFactory
Is this authenticator configurable globally?- Specified by:
isConfigurable
in interfaceClientAuthenticatorFactory
- Specified by:
isConfigurable
in interfaceConfigurableAuthenticatorFactory
- Returns:
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
getConfigPropertiesPerClient
Description copied from interface:ConfiguredPerClientProvider
List of config properties for this client implementation. Those will be shown in admin console in clients credentials tab and can be configured per client.- Specified by:
getConfigPropertiesPerClient
in interfaceConfiguredPerClientProvider
- Returns:
-
getAdapterConfiguration
Description copied from interface:ClientAuthenticatorFactory
Get configuration, which needs to be used for adapter ( keycloak.json ) of particular client. Some implementations may return just template and user needs to edit the values according to his environment (For example fill the location of keystore file)- Specified by:
getAdapterConfiguration
in interfaceClientAuthenticatorFactory
- Returns:
-
getProtocolAuthenticatorMethods
Description copied from interface:ClientAuthenticatorFactory
Get authentication methods for the specified protocol- Specified by:
getProtocolAuthenticatorMethods
in interfaceClientAuthenticatorFactory
- Parameters:
loginProtocol
- corresponds toProviderFactory.getId()
- Returns:
- name of supported client authenticator methods in the protocol specific "language"
-
isSupported
Description copied from interface:EnvironmentDependentProviderFactory
Check if the provider is supported and should be available based on the provider configuration.- Specified by:
isSupported
in interfaceEnvironmentDependentProviderFactory
- Parameters:
config
- the provider configuration- Returns:
true
if the provider is supported. Otherwise,false
.
-
toIssuer
-