Skip to content

About

OpenID Connect client library with token caching/auto-refresh and a Shared Signals (SSF) / CAEP event receiver, plus a containerized demo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

oidc-caep-client

An OpenID Connect client for browser single-page apps, written in JavaScript with TypeScript declarations, and a demo app built on it. The client runs in the page as a public client (PKCE, PAR, DPoP) and receives CAEP security events through the Shared Signals Framework.

Documentation: https://rcbj.github.io/oidc-caep-client/

Path
packages/oidc-caep-client The library, published to npm as oidc-caep-client.
demo A demo single-page app, run in one container.

Install

npm install oidc-caep-client

See Installing for version ranges and loading it in the browser, and the SPA guide to build an app with it.

Run the demo

ADMIN_API_CLIENT_SECRET=… npm run register-iya-sts   # once: register the client on iya-sts
docker compose up --build

Open http://localhost:3000. See Running the demo.

Develop

npm install
npm test

Live test against iya-sts

python3 scripts/live_iya_sts.py

It starts a fresh iya-sts from its main branch (memory mode, no persistence or clustering), registers the demo, signs in through the demo in headless Chromium (Playwright's official container image), emits a CAEP credential-change and then a session-revoked, and requires the page to show the first while still signed in and to be signed out after the second. It needs only Docker and the host's Python 3; Node and the browser run in containers. IYA_STS_IMAGE starts the fresh container from an image you already have, IYA_STS_URL uses a running iya-sts, and LIVE_STS_PORT / LIVE_DEMO_PORT (default 18504 and 18604) choose the ports. The Nightly workflow runs the unit suite and this test every day at 06:15 UTC.

Branch from develop. See Development and releases for CI, branches and versioning.

License

MIT © 2026 Iya CyberSecurity Solutions, LLC. See LICENSE.

About

OpenID Connect client library with token caching/auto-refresh and a Shared Signals (SSF) / CAEP event receiver, plus a containerized demo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages