use of org.keycloak.models.IdentityProviderSyncMode in project keycloak by keycloak.
the class KcOidcBrokerPkceTest method getBrokerConfiguration.
@Override
protected BrokerConfiguration getBrokerConfiguration() {
return new KcOidcBrokerConfiguration() {
@Override
public IdentityProviderRepresentation setUpIdentityProvider(IdentityProviderSyncMode syncMode) {
IdentityProviderRepresentation provider = super.setUpIdentityProvider(syncMode);
provider.getConfig().put(OAuth2IdentityProviderConfig.PKCE_ENABLED, "true");
provider.getConfig().put(OAuth2IdentityProviderConfig.PKCE_METHOD, OAuth2Constants.PKCE_METHOD_S256);
return provider;
}
};
}
use of org.keycloak.models.IdentityProviderSyncMode in project keycloak by keycloak.
the class BrokerWithLegacyIdTest method getBrokerConfiguration.
@Override
protected BrokerConfiguration getBrokerConfiguration() {
return new KcOidcBrokerConfiguration() {
@Override
public IdentityProviderRepresentation setUpIdentityProvider(IdentityProviderSyncMode syncMode) {
IdentityProviderRepresentation idp = super.setUpIdentityProvider(syncMode);
idp.setProviderId(LegacyIdIdentityProviderFactory.PROVIDER_ID);
return idp;
}
};
}
Aggregations