npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@heroku/torii-provider-heroku

v1.0.1

Published

A Heroku OAuth2 provider for Torii authentication in Ember.js applications.

Maintainers

srishtigautamsrishtigautamaklimaiteaklimaitejsullivandigsjsullivandigsjulianduque-sfdcjulianduque-sfdccwallsfcwallsfijanakijanakjeffrey.estradajeffrey.estradadlira-sfdlira-sfntonollierntonollierdaebumleedaebumleetetsuya_tetsuya_mttrmttrelearyelearysalesforce-releasessalesforce-releasesanujpandey001anujpandey001kbaird-sfkbaird-sfcbaxtersfcbaxtersfryoneyamaryoneyamaadirasanamadirasanamnrisaronrisarocmarcojoscmarcojosmgates-salesforcemgates-salesforceademusoyoademusoyoelzoonaelzoonadhagberg-sfdhagberg-sfbencdentonbencdentonmarcelsfdcmarcelsfdcccaseyccaseyjoeybrown90sfjoeybrown90sfsuppadasuppadadiana.doherty.sfdcdiana.doherty.sfdchritchhritchrsoerensenrsoerensenjasoncummings-herokujasoncummings-herokubrock-salesforcebrock-salesforcetkoh-sfdctkoh-sfdcgnettergnettercoreypurcell_salesforcecoreypurcell_salesforceswapnilghoseswapnilghosestessema-sfcstessema-sfcbrittany.jonesbrittany.jonesrstiltonsfrstiltonsfnilamuthunilamuthusghaffarsghaffarcdwort-sfdccdwort-sfdcaaronromeosfdcaaronromeosfdckpremkumarkpremkumarrchandarchandaxx-sfdc-npmxx-sfdc-npmcv88cv88ekozilforceekozilforceumarsfdcumarsfdcbeanieboibeanieboindavidson-sfndavidson-sfmingzhi-liu1258mingzhi-liu1258angelcampbellangelcampbellmandeepsfmandeepsfyann_ckyann_cksudarshanhiraysudarshanhirayalex_herokualex_herokusbosio_sfsbosio_sfsarahoh2468sarahoh2468tlowrimoretlowrimoreptemporiniptemporinitcareysmith-sfdctcareysmith-sfdcrobinson.mrobinson.mdkabanov1dkabanov1rdagg-herordagg-herok80bowmank80bowmansheax0rsheax0rdpark.herokudpark.herokudaniel.brightdaniel.brightjdowningjdowningabhinavkoulabhinavkouljoshwlewis-sfdcjoshwlewis-sfdcviniljainviniljaineblackeblackk.plentyk.plentyapadalaapadalalsorstokkelsorstokkercrossrcrosskdreyerorenkdreyerorendhammer25dhammer25tenharmsel_sftenharmsel_sfdougmcinnes-sfdcdougmcinnes-sfdcchap-herokuchap-herokumichellejhlimmichellejhlimmbuschherokumbuschherokubeckychenbeckychensmrutisamantasmrutisamantaapoorvasrivapoorvasrivhsophie-sfhsophie-sfp.shreyap.shreyasai_harshitha_neelasai_harshitha_neelanlanattanlanattadreichenbergdreichenbergvlazukavlazukamarsmarsheroku-front-endheroku-front-endrichatiwaririchatiwariwchrisjohnsonwchrisjohnsonthe7okathe7okasimonebonettisfitasimonebonettisfitalucaszhoulucaszhoupsalimpsalimtaylor.jonestaylor.jonesangelayoungangelayoungktsforcektsforcekerry-bennettkerry-bennettgkomminenigkomminenisripad.kulkarnisripad.kulkarnismukusmukudgallegossfdcdgallegossfdcrishabh.wasonrishabh.wasonsarassassinsarassassinarajaarajav.anandv.anandlmckenzielmckenziejordaneekeyjordaneekeydaigo-herokudaigo-herokumimenmimenjwadsworthsfjwadsworthsfpfuentepfuentebleongbleongpaguilarpaguilarzli-sfzli-sfsruthichsruthichjesse.brown-sfjesse.brown-sftij005tij005tholschuh-salesforcetholschuh-salesforcemohammadfazil.shaikmohammadfazil.shaikricardoherokuricardoherokudasofieidasofieikumardinesh2kumardinesh2sherry.yaosherry.yaotholmes-sfdctholmes-sfdcpalakjeetkaur12palakjeetkaur12sfjonnpmsfjonnpmvjohnevjohnejinjutha.hancockjinjutha.hancockmgauger_herokumgauger_herokutdhayanandatdhayanandakharlowsfkharlowsfjhili!16jhili!16slizcoslizcoyasuhiro-herokuyasuhiro-herokuanna-crossanna-crosscromwellryan-sfcromwellryan-sfhyunwookleehyunwookleematthew.rossimatthew.rossitm-sftm-sfnkoziuknkoziukherokucodyherokucodydodom-sfdcdodom-sfdccsinghaus-sfdccsinghaus-sfdcjw-sfdcjw-sfdcjlopezdanjlopezdangsinghsfdcgsinghsfdcnrenkenrenkesalesforcegenesalesforcegenebsonntag-salesforcebsonntag-salesforcechetankd10chetankd10heroku-johnnyheroku-johnnyemilyhuang-herokuemilyhuang-herokumichael.malavemichael.malaveerika.wallaceerika.wallacevalluri056valluri056hk-ankitkumarhk-ankitkumarkaruna123karuna123mjoherson-sfmjoherson-sfskediyal-sfskediyal-sf

Keywords

ember-addon

Readme

Heroku Torii Provider

A Heroku OAuth2 provider for Torii, enabling authentication with Heroku in Ember.js applications.

This addon uses Torii 1.0.0+ from the adopted-ember-addons organization. Torii has moved to adopted-ember-addons to ensure continued maintenance and compatibility with modern Ember applications (Ember 3.x+ and 4.x).

Compatibility

  • Ember.js v3.28 or above
  • Ember CLI v3.28 or above
  • Node.js v20 or above
  • Torii v1.0.0 or above

Upgrading to @heroku/torii-provider-heroku 1.0.0

⚠️ Breaking Changes: Version 1.0.0 of @heroku/torii-provider-heroku upgrades to Torii v1.0.0, which removes implicit injections (deprecated in Ember 3.x and removed in Ember 4.x).

Why this change? Torii has moved to the adopted-ember-addons organization to ensure continued maintenance and compatibility with modern Ember applications. The 1.0.0 release updates torii for Ember 4.x compatibility by removing deprecated implicit injections.

When upgrading from @heroku/torii-provider-heroku 0.x to 1.0.0, you must now explicitly inject the session and torii services in your routes, controllers, and components:

import Route from '@ember/routing/route';
import AuthenticatedRouteMixin from 'torii/routing/authenticated-route-mixin';
import { service } from '@ember/service';

export default class MyAuthenticatedRoute extends Route.extend(AuthenticatedRouteMixin) {
  @service session;
  @service torii;
}

In controllers and components:

import Controller from '@ember/controller';
import { service } from '@ember/service';

export default class MyController extends Controller {
  @service session;
  @service torii;
}

Installation

pnpm add @heroku/torii-provider-heroku

Configuration

Configure Torii in your config/environment.js:

ENV['torii'] = {
  sessionServiceName: 'session',
  providers: {
    'heroku-oauth2': {
      // Add your Heroku OAuth configuration here
    }
  }
};

Usage

Include the mixin in your app/routes/application.js file

import Route from '@ember/routing/route';
import HerokuAuthable from '@heroku/torii-provider-heroku/mixins/heroku-authable';

export default class ApplicationRoute extends Route.extend(HerokuAuthable) {
  // Your route implementation
}

Redirect Authentication

By default, attempting to access a protected route as an unauthenticated user will trigger a redirect to id.heroku.com:

<LinkTo @route="some-protected-route">
  Click to visit a protected route and be redirected to Identity
</LinkTo>

Pop-up Authentication

You can also authenticate users in a pop-up window:

<button type="button" {{on "click" this.loginToHeroku}}>
  Click to authenticate in a pop-up
</button>

In your controller or component:

import Controller from '@ember/controller';
import { service } from '@ember/service';
import { action } from '@ember/object';

export default class ApplicationController extends Controller {
  @service torii;

  @action
  async loginToHeroku() {
    try {
      const authorization = await this.torii.open('heroku-oauth2');
      // Handle successful authentication
    } catch (error) {
      // Handle authentication error
    }
  }
}

Development

Running Tests

pnpm install
pnpm test

Running the Dummy App

This repo includes a dummy app to demonstrate and test how it works:

pnpm install
pnpm start

Then visit http://localhost:4200

Resources

License

MIT