Class OidcIssuerMigration

java.lang.Object
org.keycloak.migration.migrators.OidcIssuerMigration

public final class OidcIssuerMigration extends Object
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.