Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-96.87%
Maintainers
222
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc