java.lang.Object
com.broadleafcommerce.adminuser.resource.service.provider.external.ExternalAuthProvider
All Implemented Interfaces:
AuthProvider

public class ExternalAuthProvider extends Object implements AuthProvider
  • Constructor Details

    • ExternalAuthProvider

      public ExternalAuthProvider(org.springframework.web.reactive.function.client.WebClient webClient, ExternalAuthProviderProperties properties)
  • Method Details

    • readRolesByIds

      public Set<AdminRoleRef> readRolesByIds(Set<String> ids)
      Description copied from interface: AuthProvider
      Read a set of roles by the supplied ids
      Specified by:
      readRolesByIds in interface AuthProvider
      Parameters:
      ids - The ids of the roles to read
      Returns:
      A set of roles
    • readPermissionsByIds

      public Set<AdminPermissionRef> readPermissionsByIds(Set<String> ids)
      Description copied from interface: AuthProvider
      Read set of permissions by the supplied ids
      Specified by:
      readPermissionsByIds in interface AuthProvider
      Parameters:
      ids - The ids of the permissions to read
      Returns:
      A set of permissions
    • readExternalRolesForUser

      public Set<String> readExternalRolesForUser(String userId)
      Description copied from interface: AuthProvider
      Get the ids of User's roles that were assigned by a third party authorization provider.
      Specified by:
      readExternalRolesForUser in interface AuthProvider
      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.
    • getReadRolesByIdsUri

      protected String getReadRolesByIdsUri(Collection<String> ids)
    • getReadPermissionsByIdsUri

      protected String getReadPermissionsByIdsUri(Collection<String> ids)
    • getReadExternalRolesForUserUri

      protected String getReadExternalRolesForUserUri(String userId)
    • getAuthUri

      protected String getAuthUri()
    • getReadPermissionByIdsPath

      protected String getReadPermissionByIdsPath()
    • getReadRolesByIdsPath

      protected String getReadRolesByIdsPath()
    • getReadExternalRolesForUserPath

      protected String getReadExternalRolesForUserPath()
    • validateProperties

      protected ExternalAuthProviderProperties validateProperties(ExternalAuthProviderProperties properties)
    • getWebClient

      protected org.springframework.web.reactive.function.client.WebClient getWebClient()
    • getProperties

      protected ExternalAuthProviderProperties getProperties()