No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
public
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.gitignore
.jshintrc
.travis.yml
.watchmanconfig
README.md
bower.json
ember-cli-build.js
package.json
testem.js

README.md

JWT Auth Sample App

This project demonstrates one implementation of JWT authorization by customizing the Ember Simple Auth add-on. To learn more, check out my blog post on this project. You can also check out the deployed version of this project on heroku.

Custom Authenticator

The custom authenticator is defined in app/authenticators/jwt.js. It extends ESA's base authenticator and hits an enpoint of a Rails API that uses Knock to implement JWT authentication.

Custom Authorizer

The custom authorizer is defined in app/authorizers/custom.js. It sets the Authentication header of outgoing requests to Bearer <jwt token>, the format expected by Knock on the backend.