url authenticatable module for ember-auth
Allows auto sign in from entry points like /foo?token=abcd1234
.
Config
App.Auth = EmAuthextend modules: 'urlAuthenticatable' urlAuthenticatable: # [array<string>] list of params used for authentication - those that # should be passed on to the server in the sign in call params: # [string|null] (opt) a different end point for sign in requests # from urlAuthenticatable endPoint: null
Usage
# call _super() and follow the promise pattern # if you override Ember.Route.beforeModel() App.FooRoute = EmberRouteextend : -> @_superapplythisargumentsthen -> doSomething # or : -> doSomething @_superapplythisarguments # already returns promise
License
MIT