fastboot-auth-example

Example Ember app that shows how to do authentication/authorization with FastBoot

MIT License

Stars
6

Fastboot-auth-example

This example app shows how handling auth in Ember apps can be implemented when using FastBoot which requires the user's authentication state to be kept in sync between the Ember app running in the browser and the FastBoot server.

The master branch of this repo uses classic token based authorization of API requests using an Authorization header whereas the cookie-based branch uses cookies for transmitting the token to the API server which is more secure but has some implications on domains etc.

I'm introducing the concepts behind these apps at EmberCamp London, July 12th 2016.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • npm install
  • bower install

Running / Development

  • ember fastboot --serve-assets
  • ember serve (this is required as the app needs the mock server)
  • Visit the app at http://localhost:3000.

License

This example app was developed by and © simplabs GmbH/Marco Otte-Witte and contributors. It is released under the MIT License.