Search in sources :

Example 1 with ClientAuthenticator

use of org.keycloak.authentication.ClientAuthenticator in project keycloak by keycloak.

the class ClientManager method getClientCredentialsAdapterConfig.

private Map<String, Object> getClientCredentialsAdapterConfig(ClientModel client) {
    String clientAuthenticator = client.getClientAuthenticatorType();
    ClientAuthenticatorFactory authenticator = (ClientAuthenticatorFactory) realmManager.getSession().getKeycloakSessionFactory().getProviderFactory(ClientAuthenticator.class, clientAuthenticator);
    return authenticator.getAdapterConfiguration(client);
}
Also used : ClientAuthenticatorFactory(org.keycloak.authentication.ClientAuthenticatorFactory) ClientAuthenticator(org.keycloak.authentication.ClientAuthenticator)

Example 2 with ClientAuthenticator

use of org.keycloak.authentication.ClientAuthenticator in project keycloak by keycloak.

the class KeycloakOIDCClientInstallation method getClientCredentialsAdapterConfig.

public static Map<String, Object> getClientCredentialsAdapterConfig(KeycloakSession session, ClientModel client) {
    String clientAuthenticator = client.getClientAuthenticatorType();
    ClientAuthenticatorFactory authenticator = (ClientAuthenticatorFactory) session.getKeycloakSessionFactory().getProviderFactory(ClientAuthenticator.class, clientAuthenticator);
    return authenticator.getAdapterConfiguration(client);
}
Also used : ClientAuthenticatorFactory(org.keycloak.authentication.ClientAuthenticatorFactory) ClientAuthenticator(org.keycloak.authentication.ClientAuthenticator)

Aggregations

ClientAuthenticator (org.keycloak.authentication.ClientAuthenticator)2 ClientAuthenticatorFactory (org.keycloak.authentication.ClientAuthenticatorFactory)2