import OAuth2ImplicitGrantCallbackMixin from 'ember-simple-auth/mixins/ouath2-implicit-grant-callback-mixin';

This mixin is used in the callback route when using OAuth 2.0 Implicit Grant authentication. It implements the {{#chrossLink "OAuth2ImplicitGrantCallbackRouteMixin/activate:method"}}{{/crossLink}} method that retrieves and processes authentication parameters, such as access_token, from the hash parameters provided in the callback URL by the authentication server. The parameters are then passed to the {{#crossLink "OAuth2ImplicitGrantAuthenticator"}}{{/crossLink}}

Methods

source public

activate( )

Passes the hash received with the redirection from the authentication server to the OAuth2ImplicitGrantAuthenticator and authenticates the session with the authenticator.

Properties

source public

authenticator: String

Default: null

The authenticator that should be used to authenticate the callback. This must be a subclass of the OAuth2ImplicitGrantAuthenticator authenticator.

source public

error: String

Default: null

Any error that potentially occurs during authentication will be stored in this property.

source public readonly

session: SessionService

The session service.

Extends

Ember.Mixin

Methods