# ember-cli-django-rest-auth

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

Latest version **0.5.0** (published 2015-12-21) · LGPLv3 license · 0 weekly downloads

## Install

```sh
npm install ember-cli-django-rest-auth
pnpm add ember-cli-django-rest-auth
yarn add ember-cli-django-rest-auth
bun add ember-cli-django-rest-auth
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2015-12-21 |
| First published | 2014-07-17 |
| Weekly downloads | 0 |
| License | LGPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Thomas Ziegler |
| Maintainers | zauberertz |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-cli-django-rest-auth
- Repository: https://github.com/zaubererty/ember-cli-django-rest-auth
- Issues: https://github.com/zaubererty/ember-cli-django-rest-auth/issues
- npm.io page: https://npm.io/package/ember-cli-django-rest-auth

## Recent versions

- 0.5.0 (latest) — 2015-12-21
- 0.3.0 — 2014-07-17
- 0.2.0 — 2014-07-17
- 0.1.0 — 2014-07-17

## README

[![Ember Observer Score](http://emberobserver.com/badges/ember-cli-django-rest-auth.svg)]

# Ember CLI - Django Rest-Auth

## About ##

A ember component to authenticate against Django Rest-Framework

## Install ##

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

## Usage ##

place your auth settings in your environment.js

```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']
    };
```

Add following initializer to your app you may call it auth.js:

```js
export default {
  name:       'auth',
  before:      'django-rest-auth',
  initialize: function(container, application){
  	window.ENV = <APPNAME>ENV;
  }
};

```

## Authors ##

* [Thomas Ziegler](http://twitter.com/zauberertz)

---
_Source: https://npm.io/package/ember-cli-django-rest-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
