Package com.polarion.platform.security
Interface IUserAuthenticationProvidersManager
public interface IUserAuthenticationProvidersManager
Manages user to authentication provider relations
- Since:
- 3.21.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUserToProvider
(String userId, String providerId) Adds the user ID to the list of users who can login using the requested authentication providerboolean
canLoginWithProvider
(String userId, String providerId) Check if user can login using requested authentication providergetAllowedProvidersForUser
(String userId) Returns all allowed providers IDs for the requested user IDvoid
removeUser
(String userId) Removes the user ID from the list of users who can log in for all authentication providersvoid
removeUserFromProvider
(String userId, String providerId) Removes the user ID from the list of users who can login using the requested authentication providervoid
setAllowedProvidersForUser
(String userId, Set<String> providerIds) Force the user to login using only the given set of authentications providers Updates all available authentication providers in the system and removes or adds the user
-
Method Details
-
canLoginWithProvider
Check if user can login using requested authentication provider- Parameters:
userId
- ID of the userproviderId
- ID of the authentication provider- Returns:
- true if user can login
-
getAllowedProvidersForUser
Returns all allowed providers IDs for the requested user ID- Parameters:
userId
- ID of the user- Returns:
- the set of accepted authentication providers IDs
-
addUserToProvider
Adds the user ID to the list of users who can login using the requested authentication provider- Parameters:
userId
- ID of the user to be addedproviderId
- ID of the authentication provider
-
removeUserFromProvider
Removes the user ID from the list of users who can login using the requested authentication provider- Parameters:
userId
- ID of the user to be removedproviderId
- ID of the authentication provider
-
removeUser
Removes the user ID from the list of users who can log in for all authentication providers- Parameters:
userId
- ID of the user to be removed
-
setAllowedProvidersForUser
Force the user to login using only the given set of authentications providers Updates all available authentication providers in the system and removes or adds the user- Parameters:
userId
- ID of the userproviderIds
- the set of authentication provider IDs
-