API Docs for: 0.25.0
Show:

CasAuthenticatedRouteMixin Class

Module: mixins
Parent Module: ember-osf

Replacement for Ember-simple-auth AuthenticatedRouteMixin. Instead of redirecting to an internal route, this mixin redirects to CAS login URL, and brings the user back to the last requested page afterwards

For OAuth this is done via the state parameter, and for cookies this is done via the service parameter. (TODO: Need a mixin that detects this!)

Item Index

Methods

Properties

Methods

beforeModel

() public

Checks whether the session is authenticated, and if it is not, attempts to authenticate it, and if that fails, redirects to the login URL. (Sending back to this page after a successful transition)

If beforeModel is overridden in a route that uses this mixin, the route's implementation must call this._super(...arguments) so that the mixin's beforeModel method is actually executed.

Properties

session

SessionService public

The session service.