Simple library to do token authentication in Ember.js.
Corresponding Rails Engine: Ember Auth Rails
Just include dist/ember-auth-easy.js in your project after including Ember, Ember Data, and Ember Auth.
Ember Auth Easy is also available as an npm module.
After including ember-auth-easy.js and creating your App, the only setup required is if your ember app is on a different URL than your server
// If your ember app is on a different urlEmberAuth;
In your template, render the user status partial:
This does the following:
Once a user logs in, all subsequent requests have an auth_token parameter added to them.
Ember Auth Easy development depends upon ruby, rake and node.
Ember Auth Easy is designed to make it easy to build a new version of the tool using 'rake dist' on the commandline. Before running 'rake dist' for the first time install the required dependencies by executing the following commands on the commandline:
There is a test app inclued with Ember Auth Easy.
To build and run it:
# if not already installed# possibly with sudonpm install -g bower grunt-clibundle exec rake overlay:test