@heroku/torii-provider-heroku
The default blueprint for ember-cli addons.
Last updated 2 months ago by fivetanley-heroku .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @heroku/torii-provider-heroku 
SYNC missed versions from official npm registry.

Heroku Torii Provider

Usage

add torii-provider-heroku to your Ember app

npm install --save heroku/torii-provider-heroku

Include the mixin in your app/routes/application.js file

import Ember from 'ember';
import HerokuAuthable from '@heroku/torii-provider-heroku/mixins/heroku-authable';

export default Ember.Route.extend(HerokuAuthable, {

});

redirect

By default, attempting to access a protect route as an unauthenticated user will trigger a redirect to id.heroku.com

{{link-to 'click to visit a protect routed and be redirected to Identity' 'some-protected-route'}}

// TODO figure out a way to popup/iframe here

pop-up

<button {{action 'loginToHeroku'}}>click to authenticate in a pop-up</button>

iframe

// TODO explain how to toggle between pop-up and iframe

Current Tags

  • 0.1.3                                ...           latest (2 months ago)

8 Versions

  • 0.1.3                                ...           2 months ago
  • 0.1.2                                ...           2 months ago
  • 0.1.1                                ...           2 months ago
  • 0.1.0                                ...           2 months ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
Maintainers (285)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 9
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |