public interface ILoginAdapter extends IServiceAdapter, IBridgingServiceAdapter
Implementations of this interface must ensure that the following properties are set and can be retrieved.
Property: /config/soccom/bridging/adapter/impl/<name>/login
Value: A string that contains the fully qualified name of the class that implements the ILoginAdapter interface.
Where: <name> is the short name used to identify this implementation.
Example: /config/soccom/bridging/adapter/impl/facebook/login = "com.ibm.commerce.soccom.bridging.facebook.FacebookLoginAdapter"
Property: /config/soccom/bridging/adapter/<name>/loginImagePath
Value: A string that defines the login icon to be displayed by the Login widget. The path should be given relative to the HTML root directory.
Where: <name> is the short name used to identify this implementation.
Example: /config/soccom/bridging/adapter/facebook/loginImagePath = "/ibm/social/images/facebook.jpg"
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copy Right Statement
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> | completeLogin()
Completes the login process that was initiated by prepareForLoginRedirect().
|
java.util.Map<java.lang.String,java.lang.String> | getAuthenticatedUser()
Gets the authenticated user information based on the value returned by LoginTokenManager.getAuthToken().
|
java.lang.String | getName()
Gets the human-readable name of this login adapter.
|
java.lang.String | prepareForLoginRedirect(java.lang.String callbackUrl)
Sets and returns the URL to redirect the client to the login page.
|
static final java.lang.String COPYRIGHT
java.lang.String getName()
java.lang.String prepareForLoginRedirect(java.lang.String callbackUrl) throws AdapterException
java.util.Map<java.lang.String,java.lang.String> completeLogin() throws AdapterException
java.util.Map<java.lang.String,java.lang.String> getAuthenticatedUser() throws AdapterException