Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@heroku/torii-provider-heroku

Package Overview
Dependencies
Maintainers
222
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heroku/torii-provider-heroku

The default blueprint for ember-cli addons.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
222
Created
Source

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

Keywords

ember-addon

FAQs

Package last updated on 16 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts