Package com.adobe.granite.auth.oauth
Interface ProviderExtension
public interface ProviderExtension
This interface is intended to be implemented by an application which wants to customize the behavior of a
Provider implementation. A ProviderExtension instance is bind to all specific Providers supporting
the provider extension and for which Provider#getId equals ProviderExtension#getId.
Each Provider can be bind to either 0 or 1 ProviderExtension at any given time and in case the condition
above holds for more than one ProviderExtension, then the instance with the highest service ranking is selected.-
Method Summary
Modifier and TypeMethodDescriptiongetId()Unique ID for this provider extension, used to bind aProviderwith the current ProviderExtension instance.Return the node path where the user should be createdMap the provider's user identifier to a unique CRX user identifier.voidonUserCreate(User user) Called after theProvider.onUserCreate(org.apache.jackrabbit.api.security.user.User)of the referencedProviderinstance is called.voidonUserUpdate(User user) Called after theProvider.onUserUpdate(org.apache.jackrabbit.api.security.user.User)of the referencedProviderinstance is called.
-
Method Details
-
getId
String getId()Unique ID for this provider extension, used to bind aProviderwith the current ProviderExtension instance.- Returns:
- the provider extension identifier
-
mapUserId
Map the provider's user identifier to a unique CRX user identifier.- Parameters:
userId- provider's user identifierprops- map of all provider's properties for the user identifier- Returns:
- the user identifier or
nullin order to leave the implementation to the referencedProvider - See Also:
-
getUserFolderPath
Return the node path where the user should be created- Parameters:
userId- provider's user identifierclientId- client identifierprops- map of all provider's properties for this user identifier- Returns:
- relative path to store this user within /home/users or
nullin order to leave the implementation to the referencedProvider
-
onUserUpdate
Called after theProvider.onUserUpdate(org.apache.jackrabbit.api.security.user.User)of the referencedProviderinstance is called.- Parameters:
user- the user which has been updated- See Also:
-
onUserCreate
Called after theProvider.onUserCreate(org.apache.jackrabbit.api.security.user.User)of the referencedProviderinstance is called.- Parameters:
user- the user which has been created
-