Class: UWA.Services.Auth.Adapter.Abstract

UWA/Services/Auth/Adapter/Abstract. UWA.Services.Auth.Adapter.Abstract

new UWA.Services.Auth.Adapter.Abstract(options)

UWA.Services.Auth.Adapter.Abstract constructor.

Parameters
Name Type Description
options Object

Options hash or a option/value pair.

Mixes In

  • UWA.Class.Options

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