Class ExternalAuthProvider
java.lang.Object
com.broadleafcommerce.adminuser.resource.service.provider.external.ExternalAuthProvider
- All Implemented Interfaces:
AuthProvider
-
Constructor Summary
ConstructorsConstructorDescriptionExternalAuthProvider(org.springframework.web.reactive.function.client.WebClient webClient, ExternalAuthProviderProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected ExternalAuthProviderPropertiesprotected Stringprotected StringgetReadExternalRolesForUserUri(String userId) protected Stringprotected Stringprotected Stringprotected Stringprotected org.springframework.web.reactive.function.client.WebClientreadExternalRolesForUser(String userId) Get the ids of User's roles that were assigned by a third party authorization provider.readPermissionsByIds(Set<String> ids) Read set of permissions by the supplied idsreadRolesByIds(Set<String> ids) Read a set of roles by the supplied idsprotected ExternalAuthProviderPropertiesvalidateProperties(ExternalAuthProviderProperties properties)
-
Constructor Details
-
ExternalAuthProvider
public ExternalAuthProvider(org.springframework.web.reactive.function.client.WebClient webClient, ExternalAuthProviderProperties properties)
-
-
Method Details
-
readRolesByIds
Description copied from interface:AuthProviderRead a set of roles by the supplied ids- Specified by:
readRolesByIdsin interfaceAuthProvider- Parameters:
ids- The ids of the roles to read- Returns:
- A set of roles
-
readPermissionsByIds
Description copied from interface:AuthProviderRead set of permissions by the supplied ids- Specified by:
readPermissionsByIdsin interfaceAuthProvider- Parameters:
ids- The ids of the permissions to read- Returns:
- A set of permissions
-
readExternalRolesForUser
Description copied from interface:AuthProviderGet the ids of User's roles that were assigned by a third party authorization provider.- Specified by:
readExternalRolesForUserin interfaceAuthProvider- 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
-
getReadPermissionsByIdsUri
-
getReadExternalRolesForUserUri
-
getAuthUri
-
getReadPermissionByIdsPath
-
getReadRolesByIdsPath
-
getReadExternalRolesForUserPath
-
validateProperties
protected ExternalAuthProviderProperties validateProperties(ExternalAuthProviderProperties properties) -
getWebClient
protected org.springframework.web.reactive.function.client.WebClient getWebClient() -
getProperties
-