Package org.keycloak.organization.utils
Class Organizations
java.lang.Object
org.keycloak.organization.utils.Organizations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canManageOrganizationGroup
(KeycloakSession session, GroupModel group) static void
checkEnabled
(OrganizationProvider provider) static String
getEmailDomain
(String email) static OrganizationProvider
getProvider
(KeycloakSession session) static boolean
static boolean
isEnabledAndOrganizationsPresent
(OrganizationProvider orgProvider) static boolean
isReadOnlyOrganizationMember
(KeycloakSession session, UserModel delegate) static boolean
isRegistrationAllowed
(KeycloakSession session, RealmModel realm) static InviteOrgActionToken
parseInvitationToken
(HttpRequest request) static Consumer<GroupModel>
removeGroup
(KeycloakSession session, RealmModel realm) static List<IdentityProviderModel>
resolveHomeBroker
(KeycloakSession session, UserModel user) static OrganizationModel
resolveOrganization
(KeycloakSession session) static OrganizationModel
resolveOrganization
(KeycloakSession session, UserModel user) static OrganizationModel
resolveOrganization
(KeycloakSession session, UserModel user, String domain)
-
Constructor Details
-
Organizations
public Organizations()
-
-
Method Details
-
canManageOrganizationGroup
-
resolveHomeBroker
public static List<IdentityProviderModel> resolveHomeBroker(KeycloakSession session, UserModel user) -
removeGroup
-
isEnabledAndOrganizationsPresent
-
isEnabledAndOrganizationsPresent
-
checkEnabled
-
parseInvitationToken
public static InviteOrgActionToken parseInvitationToken(HttpRequest request) throws VerificationException - Throws:
VerificationException
-
getEmailDomain
-
resolveOrganization
-
resolveOrganization
-
resolveOrganization
public static OrganizationModel resolveOrganization(KeycloakSession session, UserModel user, String domain) -
getProvider
-
isRegistrationAllowed
-
isReadOnlyOrganizationMember
-