Package org.keycloak.migration.migrators
Class OidcIssuerMigration
java.lang.Object
org.keycloak.migration.migrators.OidcIssuerMigration
Migration of legacy issuer lists for providers with single-issuer configurations. Federated links do not record an issuer,
so a migrated provider must be reviewed before it can safely be enabled again.
This intentionally does not implement Migration and is not registered in DefaultMigrationManager.
Identity providers are validated eagerly while a realm representation is imported (see
OIDCIdentityProviderConfig#validate), before the standard post-import migrateImport hooks ever run,
so a multi-issuer configuration would fail validation before any registered migrator got a chance to fix it.
Instead, migrateImport(KeycloakSession, RealmRepresentation) is called directly against the representation
before identity providers are created.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfirstIssuer(String issuers) static IdentityProviderFactory<?>getFactory(KeycloakSession session, String providerId) Resolves the factory for the given provider id, ornullwhen that provider is not installed.static booleanisMultiIssuerProvider(KeycloakSession session, String providerId, String issuer) static voidmigrateImport(KeycloakSession session, RealmRepresentation realm)
-
Field Details
-
VERSION
-
-
Method Details
-
getFactory
Resolves the factory for the given provider id, ornullwhen that provider is not installed. -
isMultiIssuerProvider
public static boolean isMultiIssuerProvider(KeycloakSession session, String providerId, String issuer) -
firstIssuer
-
migrateImport
-