Package org.keycloak.migration
Interface MigrationProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultMigrationProvider
Various common utils needed for migration from older version to newer
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptionaddOIDCAcrClientScope(RealmModel realm) Add 'acr' client scope or return it if already existsAdd 'basic' client scope or return it if already existsAdds themicroprofile-jwtoptional client scope to the realm and returns the created scope.Add 'roles' client scope or return it if already existsAdd 'service_account' client scope or return it if already existsAdd 'web-origins' client scope or return it if already existsAdd the SAML mapper for the step-up AuthnContextClassRef authentication to the realm.getBuiltinMappers(String protocol) getMappersForClaimMask(Long claimMask) voidsetupAdminCli(RealmModel realm)
-
Method Details
-
getMappersForClaimMask
- Parameters:
claimMask- mask used on ClientModel in 1.1.0- Returns:
- set of 1.2.0.Beta1 protocol mappers corresponding to given claimMask
-
getBuiltinMappers
-
setupAdminCli
-
addOIDCRolesClientScope
Add 'roles' client scope or return it if already exists- Parameters:
realm-- Returns:
- created or already existing client scope 'roles'
-
addOIDCWebOriginsClientScope
Add 'web-origins' client scope or return it if already exists- Parameters:
realm-- Returns:
- created or already existing client scope 'web-origins'
-
addOIDCMicroprofileJWTClientScope
Adds themicroprofile-jwtoptional client scope to the realm and returns the created scope. If the scope already exists in the realm then the existing scope is returned.- Parameters:
realm- the realm to which the scope is to be added.- Returns:
- a reference to the
microprofile-jwtclient scope that was either created or already exists in the realm.
-
addOIDCAcrClientScope
Add 'acr' client scope or return it if already exists- Parameters:
realm-- Returns:
- created or already existing client scope 'acr'
-
addOIDCBasicClientScope
Add 'basic' client scope or return it if already exists- Parameters:
realm-- Returns:
- created or already existing client scope 'basic'
-
addOIDCServiceAccountClientScope
Add 'service_account' client scope or return it if already exists- Parameters:
realm-- Returns:
- created or already existing client scope 'service_account'
-
addSamlAuthnContextClassRefClientScope
Add the SAML mapper for the step-up AuthnContextClassRef authentication to the realm.- Parameters:
realm-- Returns:
- created, already existing client scope or null if not step-up not enabled
-