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. |
npm install oidc-caep-clientSee Installing for version ranges and loading it in the browser, and the SPA guide to build an app with it.
ADMIN_API_CLIENT_SECRET=… npm run register-iya-sts # once: register the client on iya-sts
docker compose up --buildOpen http://localhost:3000. See Running the demo.
npm install
npm testpython3 scripts/live_iya_sts.pyIt 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.
MIT © 2026 Iya CyberSecurity Solutions, LLC. See LICENSE.