ember-cli-django-rest-auth

Addon to Ember Simple-Auth to authenticate with Django Rest Framework

Usage no npm install needed!

<script type="module">
  import emberCliDjangoRestAuth from 'https://cdn.skypack.dev/ember-cli-django-rest-auth';
</script>

README

Ember CLI - Django Rest-Auth

About

A ember component to authenticate against Django Rest-Framework

Install

npm install ember-cli-django-rest-auth --save-dev

Usage

place your auth settings in your environment.js

if (environment === 'development') {
    ENV.APP.API_HOST = 'http://localhost:8000';
    ENV['simple-auth'] = {
      authorizer: 'authorizer:django-rest',
      serverTokenEndpoint: 'http://localhost:8000/api-token-auth/',
      crossOriginWhitelist: ['http://localhost:8000']
    };

Authors