@heroku/torii-provider-heroku
The default blueprint for ember-cli addons.
Last updated 9 months ago by dhaulagiri .
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 '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.0.7                                ...           latest (9 months ago)

4 Versions

  • 0.0.7                                ...           9 months ago
  • 0.0.6                                ...           9 months ago
  • 0.0.5                                ...           9 months ago
  • 0.0.4                                ...           9 months ago
Maintainers (224)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 8
Last Month 0
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |