Package org.keycloak.models.utils
Class DefaultClientScopes
- java.lang.Object
-
- org.keycloak.models.utils.DefaultClientScopes
-
public class DefaultClientScopes extends Object
- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description DefaultClientScopes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createDefaultClientScopes(KeycloakSession session, RealmModel realm, boolean addScopesToExistingClients)
static void
createOfflineAccessClientScope(RealmModel newRealm, RoleModel offlineRole)
-
-
-
Method Detail
-
createDefaultClientScopes
public static void createDefaultClientScopes(KeycloakSession session, RealmModel realm, boolean addScopesToExistingClients)
- Parameters:
session
-realm
-addScopesToExistingClients
- true when creating new realm. False when migrating from previous version
-
createOfflineAccessClientScope
public static void createOfflineAccessClientScope(RealmModel newRealm, RoleModel offlineRole)
-
-