Source code for Embercast: "Client-side Authentication - Part 2"
JavaScript CSS
Latest commit ab1dafa Jun 11, 2014 @ebryn ebryn Merge pull request #4 from swilliams/master
Added MIT License
Permalink
Failed to load latest commit information.
public
.gitignore Initial commit Jun 24, 2013
LICENSE.txt Add (c) Jun 11, 2014
README.md Initial commit Jun 24, 2013
package.json
server.js

README.md

Embercast: Client-side Authentication, Part 2

This two-part series on client-side authentication focuses on how you can configure your single-page Ember app to query data from the server using token-based authentication.

This second part focuses mainly on how to make use of redirects, saved/retryable transitions, and async error handling features available on the Ember Router to build out the rest of a simple authenticated app.

Install

Clone this repository, and in the new directory, run:

npm install
node server.js

This will run a Node server on localhost:3000 that you can visit in your browser.

Structure

server.js in the root directory is the Node server that features very simple token-based authentication.

public/js/app.js is where all Ember code for this Embercast resides.