new UWA.Services.Auth.Adapter.Exposition(options)
This Adapter class is made to support Auth for Exposition.
Parameters
Name | Type | Description |
---|---|---|
options |
Object | Options hash or a option/value pair. |
Extends
- UWA.Services.Auth.Adapter.Abstract
Index
Methods
-
hasIdentity(onSuccess, onFailure)
-
Check if user has an Identity.
Parameters
Name Type Description onSuccess
Function On success callback
onFailure
Function On failure callback
-
getIdentity(onSuccess, onFailure)
-
Get user Identity.
Parameters
Name Type Description onSuccess
Function On success callback
onFailure
Function On failure callback
-
clearIdentity(onComplete)
-
Clears the current identity.
Parameters
Name Type Description onComplete
Function On complete callback
-
authenticate(onSuccess, onFailure, credentials)
-
Authenticate user.
Parameters
Name Type Description onSuccess
Function On success callback
onFailure
Function On failure callback
credentials
Object Auth adapter credentials
-
toQueryString() → {String}
-
Encode Adapter to a url string that could be use by UWA.Data.request for example.
Returns
Adapter encoded string.
- Type
- String