@heroku/torii-provider-heroku

The default blueprint for ember-cli addons.

Stats

StarsIssuesVersionUpdatedCreatedSize
@heroku/torii-provider-heroku
0.1.32 years ago3 years agoMinified + gzip package size for @heroku/torii-provider-heroku in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.