Module

ember-simple-auth/authenticators/oauth2-implicit-grant

Classes

OAuth2ImplicitGrantAuthenticator

Methods

# static parseResponse(locationHash) → {Object}

Parses the location hash (as received from window.location.hash) into an object, e.g.:

parseResponse('/routepath#access_token=secret-token&scope=something'); // => { access_token: 'secret-token', scope: 'something' }
Parameters:
Name Type Description
locationHash String

The location hash (as received from window.location.hash)

View Source authenticators/oauth2-implicit-grant.js, line 6

An obect with individual properties and values for the data parsed from the location hash

Object