Skip to content

feat: add Eve-compatible Jinshuju OIDC auth - #1

Merged
mechiland merged 1 commit into
mainfrom
codex/eve-oidc-auth
Jul 17, 2026
Merged

feat: add Eve-compatible Jinshuju OIDC auth#1
mechiland merged 1 commit into
mainfrom
codex/eve-oidc-auth

Conversation

@mechiland

Copy link
Copy Markdown
Member

What changed

  • publishable @jinshuju/eve-oidc package for Eve 0.24.6 route auth
  • opaque Bearer token verification through OIDC UserInfo
  • fail-closed runtime config resolved when jinshujuOidc() is called
  • sanitized provider-failure responses with no token or upstream-body leakage
  • bounded HTTPS discovery/UserInfo requests and conservative profile projection
  • CI, package build metadata, usage docs, and 11 contract tests

Eve mapping

A verified UserInfo sub becomes an Eve user SessionAuthContext with:

  • authenticator: jinshuju-oidc
  • principalId: <issuer>:<sub>
  • exact issuer and subject
  • only selected string/string-array profile attributes

Validation

  • pnpm test — 11/11
  • pnpm typecheck
  • pnpm build
  • npm pack --dry-run — 7 expected package files
  • cross-repository UAT using Eveland createOpenIdClientProtocol to exchange Authorization Code + PKCE for an opaque token, then this package to verify UserInfo and create an Eve caller

The npm name @jinshuju/eve-oidc is currently unclaimed. Publishing is intentionally deferred until this PR is merged and npm credentials or trusted publishing are configured.

@mechiland
mechiland marked this pull request as ready for review July 17, 2026 23:37
@mechiland
mechiland merged commit cab2c66 into main Jul 17, 2026
1 check passed
@mechiland
mechiland deleted the codex/eve-oidc-auth branch July 17, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant