Interface DefaultGroupMembershipResolver
- All Known Implementing Classes:
ApplicationDefaultGroupMembershipResolver,DirectoryDefaultGroupMembershipResolver
public interface DefaultGroupMembershipResolver
Resolves default groups which user should be added to during authentication
- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultGroupNames(Application application, Directory directory, UserWithAttributes user) Returns the default group memberships to which the user authenticating to the specified application should be added to.voidonDefaultGroupsAdded(Application application, Directory directory, UserWithAttributes user) The callback that should be called after adding the user to all the default groups returned from this DefaultGroupMembershipResolver
-
Method Details
-
getDefaultGroupNames
Collection<String> getDefaultGroupNames(Application application, Directory directory, UserWithAttributes user) Returns the default group memberships to which the user authenticating to the specified application should be added to.- Parameters:
application- the application which user authenticates againstdirectory- the user's directoryuser- the user- Returns:
- a collection of group names
-
onDefaultGroupsAdded
void onDefaultGroupsAdded(Application application, Directory directory, UserWithAttributes user) throws OperationFailedException The callback that should be called after adding the user to all the default groups returned from this DefaultGroupMembershipResolver- Parameters:
application- the application user authenticated againstdirectory- the user's directoryuser- the user- Throws:
OperationFailedException
-