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 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 against
      directory - the user's directory
      user - 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 against
      directory - the user's directory
      user - the user
      Throws:
      OperationFailedException