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

@haneinfo/oidc-auth

v6.1.0

Published

OIDC interactive authentication for Haneinfo apps: JWKS/RS256 verification, (issuer, subject) identity mapping, JIT provisioning and inbound delegated (RFC 8693) trust profiles.

Readme

@haneinfo/oidc-auth

OIDC interactive authentication and inbound delegated (RFC 8693) token verification for Haneinfo NestJS apps.

Architecture (6.0)

  • Single interactive verification path: JwtVerifierService.verifyJwtToken(token) is the sole verification entry point for interactive bearer tokens (used by OidcInteractiveStrategy and @haneinfo/plugin-host-nest's InteractiveAuthGuard).
  • IAM profile contract: issuer, jwksUri (via getTrustedMetadata()), signing algorithm allowlist (signingAlgorithms), and claim normalization (normalizeClaims('web', payload, header)) all come from the injected IAM_PROFILE (IamProfilePort, capability haneinfo.iam-profile).
  • Audience & client separation: Web API audience (web.apiAudience) and Web RP client ID (web.clientId) come from the deployment configuration (IamDeploymentConfig) and are enforced by the IAM_PROFILE implementation rather than OIDC_AUDIENCE or azp === audience.
  • Token timestamp validation: iat and exp bounds (clockToleranceSeconds, maxIssuedLifetimeSeconds) are enforced by @haneinfo/plugin-api's validateTokenTimestamps.

Migrating from 5.x to 6.0

Removed environment variables and exports

  • OIDC_ISSUER, OIDC_AUDIENCE and OIDC_JWKS_URL are no longer read.
  • oidcAuthConfigFromEnvironment is removed, and oidcAuthConfigSchema is now z.object({}).strict().
  • The Passport path is removed: OidcStrategy, JwtAuthGuard, and the passport, passport-jwt and @nestjs/passport dependencies. Use InteractiveAuthGuard from @haneinfo/plugin-host-nest instead.
  • JwtVerifierService.buildOidcJwtUser is removed. It built a principal from an unverified payload.

New required capability

  • requires now includes haneinfo.iam-profile (CAPABILITY_IAM_PROFILE), and engine.haneinfoPluginApi is ^1.29.0.

Changes to haneinfo.config.ts

Set runtime.oidc to {}, then add @haneinfo/iam-keycloak/plugin, runtime.iam and iam.deployment. The @haneinfo/plugin-host-nest README has the details.

import { iamKeycloakPlugin } from '@haneinfo/iam-keycloak/plugin';
import { oidcAuthPlugin } from '@haneinfo/oidc-auth/plugin';
import type { IamDeploymentConfig } from '@haneinfo/plugin-api';
import { defineHaneinfoConfig } from '@haneinfo/plugin-host-nest';

// Single source of truth for profileId, issuer, capabilities, web.apiAudience and web.clientId.
const iamDeployment: IamDeploymentConfig = {
  /* ... */
};

export default defineHaneinfoConfig({
  inventory,
  plugins: [{ plugin: iamKeycloakPlugin }, { plugin: oidcAuthPlugin } /* , ... */],
  iam: { deployment: iamDeployment },
  runtime: {
    iam: iamDeployment,
    oidc: {},
  },
});

DelegatedAuthModule changes

  • DelegatedAuthModule.forFeature(options) no longer accepts an oidc option and no longer reads OIDC_JWKS_URL.
  • DelegatedJwtVerifierService injects IAM_PROFILE. On the first verification it reads jwksUri from getTrustedMetadata() and checks it with validateDelegatedJwksUrl.
  • Apps must make IAM_PROFILE injectable through options.imports, together with PrismaService, IDENTITY_STORE and AUDIT_SINK.
  • O3 startup gate: DelegatedAuthModule checks IAM_PROFILE.mcpCapabilities.delegation at startup and refuses to boot unless it is true (cross-app delegation O3 is not enabled, so delegated entry points must not be registered).

Not yet migrated (Phase 2 W7)

The template, the Apps and @haneinfo/app-tooling (for example packages/app-tooling/src/scaffold.ts and its tests) still use these names. They migrate in Phase 2 W7:

  • OIDC_ISSUER
  • OIDC_AUDIENCE
  • OIDC_JWKS_URL