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 String
protected ExternalAuthProviderProperties
protected String
protected String
getReadExternalRolesForUserUri
(String userId) protected String
protected String
protected String
protected String
protected org.springframework.web.reactive.function.client.WebClient
readExternalRolesForUser
(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 ExternalAuthProviderProperties
validateProperties
(ExternalAuthProviderProperties properties)
-
Constructor Details
-
ExternalAuthProvider
public ExternalAuthProvider(org.springframework.web.reactive.function.client.WebClient webClient, ExternalAuthProviderProperties properties)
-
-
Method Details
-
readRolesByIds
Description copied from interface:AuthProvider
Read a set of roles by the supplied ids- Specified by:
readRolesByIds
in interfaceAuthProvider
- Parameters:
ids
- The ids of the roles to read- Returns:
- A set of roles
-
readPermissionsByIds
Description copied from interface:AuthProvider
Read set of permissions by the supplied ids- Specified by:
readPermissionsByIds
in interfaceAuthProvider
- Parameters:
ids
- The ids of the permissions to read- Returns:
- A set of permissions
-
readExternalRolesForUser
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 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
-