Module: Authorization

AeroGear. Authorization

new Authorization(config) → {Object}

Status: Experimental
The AeroGear.Authorization namespace provides an authentication API.
Parameters:
Name Type Argument Description
config String | Array | Object <optional>
A configuration for the service(s) being created along with the authorizer. If an object or array containing objects is used, the objects can have the following properties:
Properties
Name Type Argument Default Description
name String the name that the module will later be referenced by
type String <optional>
"OAuth2" the type of module as determined by the adapter used
settings Object <optional>
{} the settings to be passed to the adapter. For specific settings, see the documentation for the adapter you are using.
Source:
Returns:
The created authorizer containing any authz services that may have been created
Type
Object
Example
    // Create an empty authorizer
    var authz = AeroGear.Authorization();

Members

<static> adapters

The adapters object is provided so that adapters can be added to the AeroGear.Authorization namespace dynamically and still be accessible to the add method
Source:

<static> this.collectionName :Object

The name used to reference the collection of service instances created from the adapters
Type:
  • Object
Default Value:
  • services
Source: