An Ember Ecosystem
For Spree Commerce

spree-ember-auth

Extends SimpleAuthDevise.Authorizer

The Authorizer is responsible for ensuring that each Authorized clientside request contains the X-Spree-Token Header. This loads the @current_api_user attribute in Spree, so that the User can successfully interact with the API.

Methods

Show Private Methods

authorize

(
  • jqXHR
)

Authorizes an XHR request by sending the X-Spree-Token header when the session is Authenticated.

Parameters:

  • jqXHR JqXHR

    The XHR request to authorize (see http://api.jquery.com/jQuery.ajax/#jqXHR)

Properties

Show Private Properties

tokenAttributeName

String

The token attribute name. The Spree AMS Gem uses token.


Default: 'token'