import OAuth2BearerAuthorizer from 'ember-simple-auth/authorizers/oauth2-bearer';

Authorizer that conforms to OAuth 2 (RFC 6749); includes the access token from the session data as a bearer token (RFC 6750) in the Authorization header, e.g.:

Authorization: Bearer 234rtgjneroigne4
          

Methods

source public

authorize(data, block(headerName,headerContent))

Overrides: authorize of BaseAuthorizer.

Includes the access token from the session data into the Authorization header as a Bearer token, e.g.:

Authorization: Bearer 234rtgjneroigne4
                          

Arguments

data: Object

The data that the session currently holds

block(headerName,headerContent): Function

The callback to call with the authorization data; will receive the header name and header content as arguments

Extends

BaseAuthorizer

Methods