new IdentityService()
Should not be called by the developer.
- Source:
Methods
-
getBackendToken(fromserver, options, successCallback, failureCallback)
-
Fetch the backend datasource token.
Parameters:
Name Type Description fromserver
boolean Flag to force fetch from server only. options
object Options successCallback
fetchBackendTokenSuccessCallback Callback method on success failureCallback
fetchBackendTokenFailureCallback Callback method on failure - Source:
-
getProfile(fromserver, successCallback, failureCallback)
-
Get profile.
Parameters:
Name Type Description fromserver
boolean Flag to force fetch from server only. successCallback
getProfileSuccessCallback Callback method on success failureCallback
getProfileFailureCallback Callback method on failure - Source:
-
getProviderName() → {string}
-
Get the provider name.
- Source:
Returns:
Provider name.- Type
- string
-
getProviderType() → {string}
-
Get the provider type.
- Source:
Returns:
Provider type.- Type
- string
-
getSecurityAttributes() → {string}
-
Get the security attributes returned by a provider
- Source:
Returns:
security attributes.- Type
- string
-
getUserAttributes() → {string}
-
Get the user attributes returned by a provider
- Source:
Returns:
user attributes.- Type
- string
-
getUserData() → {string}
-
Get the generic session data type.
- Source:
Returns:
session data.- Type
- string
-
login(options, successCallback, failureCallback)
-
Login with the given credentials asynchronously and executes the given callback.
Parameters:
Name Type Description options
object User name and password successCallback
loginSuccessCallback Callback method on success failureCallback
loginFailureCallback Callback method on failure - Source:
-
logout(successCallback, failureCallback)
-
Logout and executes the given callback.
Parameters:
Name Type Description successCallback
logoutSuccessCallback Callback method on success failureCallback
logoutFailureCallback Callback method on failure - Source: