All Known Implementing Classes:
ExternalAuthProvider

public interface AuthProvider
Provider for reading roles and permissions.
  • Method Details

    • readRolesByIds

      Set<AdminRoleRef> readRolesByIds(Set<String> ids)
      Read a set of roles by the supplied ids
      Parameters:
      ids - The ids of the roles to read
      Returns:
      A set of roles
    • readPermissionsByIds

      Set<AdminPermissionRef> readPermissionsByIds(Set<String> ids)
      Read set of permissions by the supplied ids
      Parameters:
      ids - The ids of the permissions to read
      Returns:
      A set of permissions
    • readExternalRolesForUser

      Set<String> readExternalRolesForUser(String userId)
      Get the ids of User's roles that were assigned by a third party authorization provider.
      Parameters:
      userId - The id of the User whose roles should be checked.
      Returns:
      A set of role ids of the roles that have been assigned by a third party authorization provider.