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

@owlmeans/server-oidc-rp

v0.1.11

Published

Server-side OIDC relying party — registers the OIDC guard, wrapping service, gate, and IdP-side client wiring.

Readme

@owlmeans/server-oidc-rp

Server-side OIDC relying party — registers the OIDC guard, wrapping service, gate, and IdP-side client wiring.

Overview

  • appendOidcGuard(context) — registers the OIDC guard service
  • makeOidcWrappingService() / makeOidcGate() — token wrapping service and gate factory
  • setupOidcGuard(modules, coguards?, extras?) — attaches the OIDC guard to module declarations
  • setupAuthServiceModules(...) — wires external auth modules
  • makeOidcClientService() / OidcClientService — IdP-side client (e.g., Keycloak admin)
  • Subpath ./auth — admin-client constants like OIDC_ADMIN_CLIENT

Installation

bun add @owlmeans/server-oidc-rp

Usage

Register services in context.ts:

import {
  appendOidcGuard, makeOidcWrappingService, makeOidcGate, makeOidcClientService
} from '@owlmeans/server-oidc-rp'

context.registerService(makeOidcWrappingService())
context.registerService(makeOidcGate())
context.registerService(makeOidcClientService())
appendOidcGuard<C, T>(context)

Wire onto modules in modules.ts:

import { setupOidcGuard, setupAuthServiceModules } from '@owlmeans/server-oidc-rp'

setupOidcGuard(appModules)
setupAuthServiceModules(appModules)

Configure providers in config.ts:

import { OIDC_ADMIN_CLIENT } from '@owlmeans/server-oidc-rp/auth'

cfg.oidc ??= {}
cfg.oidc.providers ??= []
cfg.oidc.providers.push({
  clientId: OIDC_ADMIN_CLIENT,
  basePath: 'realms/master',
  service: OIDC_PRODUCT,
  secret: '/etc/master-secret/oidc-admin-secret',
  internal: true
})

Use the IdP-side client in a service:

import { DEFAULT_ALIAS as OIDC_SERVICE } from '@owlmeans/server-oidc-rp'
import type { OidcClientService } from '@owlmeans/server-oidc-rp'

const oidc = context.service<OidcClientService>(OIDC_SERVICE)

API

Service factories

  • appendOidcGuard<C, T>(context): T — register the OIDC guard
  • makeOidcWrappingService(alias?) — token-wrapping service
  • makeOidcGate(alias?) — gate factory
  • makeOidcClientService(alias?) — IdP-side client (used to call OIDC admin API)

Module wiring

  • setupOidcGuard(modules, coguards?, extras?) — attach guard to module declarations
  • setupAuthServiceModules(modules, ...) — register external auth modules

Constants

  • DEFAULT_ALIAS'oidc-client'
  • OIDC_TOKEN_STORE, PROVIDER_CACHE_TTL, OIDC_AUTH_LIFTETIME, OIDC_WRAP_FRESHNESS
  • ./auth subpath: OIDC_ADMIN_CLIENT and related admin-client constants

Types

OidcClientService, RP config types — exported from the root entry.

Product-Viable Integration Notes

  • makeOidcClientService() reads provider descriptors from cfg.oidc.providers, including Google and internal admin providers.
  • Use findProvider(predicate), hasProvider(params), and entityToClientId(params) for provider lookup rather than ad hoc config scans.
  • setupAuthServiceModules(managerModules, AUTH_API) wires provider-list and token-update endpoints protected by GUARD_ED25519.
  • If OIDC/Google is only the login provider and local identity records hold authorization, do not re-add appendOidcGuard(), makeOidcGate(), or setupOidcGuard() as product authorization. Use a product-specific GateService over local profile scopes.

Related Packages

Agent guidance

This package ships embedded Claude Code skills and GitHub Copilot instructions under agent-meta/. After installing your @owlmeans/* packages, run the OwlMeans agent-skills installer to place them into your project's native locations (.claude/skills/ and .github/instructions/):

npx @owlmeans/agent-skills

The embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.