import OAuth2ImplicitGrantCallbackRouteMixin from 'ember-simple-auth/mixins/oauth2-implicit-grant-callback-route-mixin';

This mixin is used in the callback route when using OAuth 2.0 Implicit Grant authentication. It implements the activate 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 OAuth2ImplicitGrantAuthenticator

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