Releases: simpleworkjs/oidc-client
Releases · simpleworkjs/oidc-client
Release list
v1.0.0
[1.0.0] — 2026-07-25
Initial release. Extracts the byte-identical OIDC-client code previously
duplicated across the proxy and jump-host theta42 apps into a single
factory-based package.
Added
createOidcClient({ Table, checkApiToken? })factory that wires the shared
OIDC authorization-code + PKCE client onto an app's model-redisTable:Token/AuthTokensession models (extend the caller'sTable,
registered under their literal names;AuthTokencarries the login-time
group snapshot).OidcStateshort-lived PKCE/state store (5-minute TTL).Authservice:login,oidcSession(JIT provision),checkToken,
logout, and optionalcheckApiToken(wrapped to collapse every failure
to a generic401 LoginFailed— no existence/secret/expiry leak).- Express
router(POST /login,ALL /logout,GET /oidc/start,
GET /oidc/callback) with per-IP rate limiting. - Pure
oidcutils (randomToken,codeChallengeS256,createAuthRequest,
buildAuthUrl,exchangeCode,fetchUserInfo,claimsToIdentity). safeInternalPathredirect sanitizer.bootstrapLocalAdmin(User, { defaultName })anti-lockout admin bootstrap.
node --testunit suite (PKCE encoding, redirect sanitization, factory
contract,checkApiTokenerror-collapse).
Notes
- Per-app
middleware/auth.jsand proxy's per-hostroutes/host_auth.jsstay
app-local; they consumeAuthand the pureoidcutils from this package.