# ember-authenticate-me

> The default blueprint for ember-cli addons.

Latest version **0.5.0** (published 2016-09-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ember-authenticate-me
pnpm add ember-authenticate-me
yarn add ember-authenticate-me
bun add ember-authenticate-me
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2016-09-12 |
| First published | 2014-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | samsinite, jweakley |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-authenticate-me
- Repository: https://github.com/wildland/ember-authenticate-me
- Homepage: https://github.com/wildland/ember-authenticate-me#readme
- Issues: https://github.com/wildland/ember-authenticate-me/issues
- npm.io page: https://npm.io/package/ember-authenticate-me

## Dependencies (6)

- [torii](https://npm.io/package/torii.md) ^0.3.3
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.0.0
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) 0.7.6
- [ember-cli-injection](https://npm.io/package/ember-cli-injection.md) ^1.0.0
- [ember-router-generator](https://npm.io/package/ember-router-generator.md) ^1.0.0
- [ember-bootstrap-controls](https://npm.io/package/ember-bootstrap-controls.md) git+https://github.com/wildland/ember-bootstrap-controls.git#v0.0.8

## Recent versions

- 0.5.0 (latest) — 2016-09-12
- 0.4.0 — 2016-07-07
- 0.2.0 — 2016-01-14
- 0.1.0 — 2015-08-07
- 0.0.19 — 2015-07-20
- 0.0.18 — 2015-06-03
- 0.0.17 — 2015-04-21
- 0.0.16 — 2015-04-16
- 0.0.15 — 2015-04-16
- 0.0.13 — 2015-02-25
- 0.0.12 — 2015-02-16
- 0.0.11 — 2015-02-16
- 0.0.10 — 2015-02-09
- 0.0.9 — 2015-02-04
- 0.0.8 — 2015-02-04
- … 7 more at https://npm.io/package/ember-authenticate-me/versions

## README

# Ember-authenticate-me

This addon hooks [Torii](https://github.com/Vestorly/torii) up to work out of the box with the Rails gem [token-authenticate-me](https://github.com/inigo-llc/token_authenticate_me) and includes some default templates, routes, and controllers.

## Installation (requires ember-cli 2.0 or greater)

In your app's root Ember directory (typically `app-ember`), run:

* `ember install ember-authenticate-me`
* `ember generate user`

`ember g ember-authenticate-me` adds to your `app/router.js` router map:

```js
this.route('login');
this.route('logout');
this.route('sign-up');
this.route('forgot-password');

this.route('reset-password', {
  path: '/reset-password/:token'
});

this.route('edit-account', {
  path: '/edit-account/:user_id'
});
```

---

### Include Default CSS Styling

To include default css styling, add the following to your ember-cli projects `Brocfile.js`:
```js

var app = new EmberApp({
  emberAuthenticateMe: {
      importCSS: true
    },
  ...
]);
```
---

### Override default login transitions
override the `app/controllers/login.js` controller to:
```
import LoginController from 'ember-authenticate-me/controllers/login';

export default LoginController.extend({
  transitionRoute: /* route name here, I.E. 'foo' */

  transitionToLoggedInRoute: function(sessionContent) {
    /*
     * Or to dynamically control the transition
     * implement this function here and manually
     * call `this.transitionToRoute(...);
     */
  }
});
```

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).

---

## Code Of Conduct
Wildland Open Source [Code Of Conduct](https://github.com/wildland/code-of-conduct)

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