@heroku/torii-provider-heroku

0.2.0 • Public • Published

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>

Testing

This repo includes a dummy app to demonstrate and test how it works. Start it up by running yarn install and yarn start and then visiting localhost:4200

Readme

Keywords

Package Sidebar

Install

npm i @heroku/torii-provider-heroku

Weekly Downloads

29

Version

0.2.0

License

MIT

Unpacked Size

13.6 kB

Total Files

14

Last publish

Collaborators

  • sudarshanhiray
  • alex_heroku
  • rajashri-gurusamy
  • mandeepsf
  • mingzhi-liu1258
  • beanieboi
  • csinghaus-sfdc
  • dougmcinnes-sfdc
  • beckychen
  • dasofiei
  • xx-sfdc-npm
  • kpremkumar
  • stessema-sfc
  • chap-heroku
  • dhammer25
  • ndavidson-sf
  • umarsfdc
  • amandadolansf
  • cdwort-sfdc
  • apoorvasriv
  • michellejhlim
  • jhili!16
  • apadala
  • cmcclung-npm-salesforce.com
  • rstiltonsf
  • tlowrimore
  • rchanda
  • abhinavkoul
  • daniel.bright
  • jonnymac
  • justinwilaby-sf
  • cv88
  • aaronromeosfdc
  • tenharmsel_sf
  • ekozilforce
  • coreypurcell_salesforce
  • jmonreal
  • sconklin
  • suppada
  • gnetter
  • tkoh-sfdc
  • jasoncummings-heroku
  • diana.doherty.sfdc
  • joeybrown90sf
  • rsoerensen
  • ademusoyo
  • lsangalang2023
  • ccasey
  • ryanbrainard
  • marcelsfdc
  • nrisaro
  • chetankd10
  • kscarey
  • bemory-heroku
  • revativelagada
  • brock-salesforce
  • jmorrell-sfdc
  • bencdenton
  • rafaydin
  • dhagberg-sf
  • elzoona
  • cmarcojos
  • adirasanam
  • kbaird-sf
  • bhawnaheroku
  • jondaniel-sfdc
  • gkommineni
  • p.shreya
  • sai_harshitha_neela
  • ktsforce
  • hkii
  • heroku-front-end
  • vammundra
  • the7oka
  • vlazuka
  • grismar17
  • lucaszhou
  • mars
  • ashher.khan
  • nlanatta
  • pranamsharma
  • nrenke
  • richatiwari
  • psalim
  • wchrisjohnson
  • agatpareek
  • swapnilghose
  • mgates-salesforce
  • ryoneyama
  • sripad.kulkarni
  • anujpandey001
  • dboston528
  • adirksmeier
  • christopher.jose
  • cbaxtersf
  • mttr
  • tetsuya_
  • daebumlee
  • msamineni
  • srishtigautam
  • bsperlingsf
  • pbomma
  • lalitreddy
  • zli-sf
  • sbaner18
  • joanneyeung
  • paguilar
  • bleong
  • montes_heroku
  • pfuente
  • saikrishna0202
  • jwadsworthsf
  • jheikes
  • mimen
  • daigo-heroku
  • mpeck
  • jmccartie
  • jordaneekey
  • lmckenzie
  • v.anand
  • barma.jahnavi
  • araja
  • sarassassin
  • reidmix
  • mbuschheroku
  • k.plenty
  • eblack
  • sheax0r
  • k80bowman
  • rdagg-hero
  • grundy.g
  • robinson.m
  • tcareysmith-sfdc
  • ptemporini
  • paulaprado18
  • harish.457
  • jsullivandigs
  • ssherbondy77
  • marcusblankenship
  • ntonollier
  • eleary
  • salesforce-releases