@saplings/kingsman
v0.17.4
Published
Configure a tenant-aware identity realm for application identity, memberships, sessions, and OAuth/OIDC flows.
Readme
@saplings/kingsman
Configure a tenant-aware identity realm for application identity, memberships, sessions, and OAuth/OIDC flows.
Install
npm install @saplings/kingsmanQuick start
import { loadRealmConfig, validateRealmConfig } from '@saplings/kingsman';
const config = validateRealmConfig(await loadRealmConfig('./RealmConfig-full.json'));
console.log(config.metadata.environment);API and integration
- Copy the sample realm config and set issuers, client IDs, and redirect URIs for your deployment.
new IdentityPlatform(config, dependencies?)creates the realm.createIdentityHttpHandler(realm, options)exposes HTTP flows, using your verified browser authentication callback.- Production requires a persistent transactional store, stable RSA signing keys, an Argon2id adapter, and actual delivery integrations. Read the coverage guide before enabling external identity providers.
Read the integration guide for configuration and operational details.
