Authenticate to a Rails/Devise server from an Ember CLI app.
Step by step guide used to build this project: ember-cli & ember-simple-auth-devise
The project is currently using:
- ember-cli 0.0.37
- ember-simple-auth 0.6.3
git clone git@github.com:givanse/ember-cli-simple-auth-devise.gitcd my-backend
bundle update
rake db:migrate
rake db:seed
rails serverYou can sign up and log in from the server pages.
cd my-frontend
npm install
bower update
ember init
# say no to every prompt (don't overwrite anything)
ember server --proxy http://0.0.0.0:3000You can only log in from the ember app.
Two accounts will be already available for log in:
green@mail.com // 12345678
pink@mail.com // 12345678
Authentication is done using ember-simple-auth with ember-cli-simple-auth-devise.
The backend has been disabled to send session cookies for json and xml requests, see commit#b803fad. For other options, check this thread: ember-simple-auth#201