feat(auth-oidc-client): add an OpenID Connect relying-party adapter #51

Merged
crapougnax merged 2 commits from feat/auth-oidc-client into develop 2026-11-15 19:52:06 +00:00
Member

Summary

New package @quatrain/auth-oidc-client: sign users in against any standard OpenID Connect provider. Not to be confused with @quatrain/auth-oidc, which runs a provider.

  • Discovery from <issuer>/.well-known/openid-configuration, cached.
  • Authorization code flow with PKCE (S256), for confidential and public clients.
  • ID token verification: signature against the provider key set (asymmetric algorithms only), issuer, audience, expiry and nonce; the key set is reloaded once when the provider rotated its keys.
  • Refresh tokens, UserInfo and RP-initiated logout.
  • Error messages never contain a secret, a token or a provider response body.

Roles and permissions are out of scope: the application maps the verified claims.

Checks

Unit tests ran before the rebase onto the current develop; the CI of this pull request runs them again. Not tried against a live provider.

Closes #50

🤖 Generated with Claude Code

## Summary New package `@quatrain/auth-oidc-client`: sign users in against any standard OpenID Connect provider. Not to be confused with `@quatrain/auth-oidc`, which runs a provider. - **Discovery** from `<issuer>/.well-known/openid-configuration`, cached. - **Authorization code flow with PKCE (S256)**, for confidential and public clients. - **ID token verification**: signature against the provider key set (asymmetric algorithms only), issuer, audience, expiry and nonce; the key set is reloaded once when the provider rotated its keys. - **Refresh tokens**, **UserInfo** and **RP-initiated logout**. - Error messages never contain a secret, a token or a provider response body. Roles and permissions are out of scope: the application maps the verified claims. ## Checks Unit tests ran before the rebase onto the current `develop`; the CI of this pull request runs them again. Not tried against a live provider. Closes #50 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(auth-oidc-client): add an OpenID Connect relying-party adapter
Some checks failed
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Failing after 15m43s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Failing after 15m43s
Quatrain Core CI / Publish Changed Packages to npm (push) Has been cancelled
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been cancelled
efa3126b45
New package @quatrain/auth-oidc-client to sign users in against any
standard OpenID Connect provider:

- endpoints and keys from the discovery document (cached);
- authorization code flow with PKCE (S256), confidential or public client;
- ID token verification: signature (asymmetric algorithms only), issuer,
  audience, expiry and nonce, with one key set reload on key rotation;
- refresh tokens, UserInfo and RP-initiated logout.

Roles are out of scope: applications map the verified claims themselves.
@quatrain/auth-oidc remains the package that runs a provider.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merge branch 'develop' into feat/auth-oidc-client
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 4m47s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 4m54s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
Quatrain Core CI / Publish Changed Packages to npm (push) Has been skipped
9ad7beddb5
crapougnax merged commit 8ecb491c33 into develop 2026-11-15 19:52:06 +00:00
crapougnax deleted branch feat/auth-oidc-client 2026-11-15 19:52:06 +00:00
Sign in to join this conversation.
No description provided.