@connectum/auth
Authentication, authorization, trusted gateway and internal identity, auth context, and client credentials.
Install
bash
npm install @connectum/authbash
pnpm add @connectum/authbash
bun add @connectum/authStart Here
typescript
import { createJwtAuthInterceptor } from '@connectum/auth';
const jwtAuth = createJwtAuthInterceptor({
jwksUri: 'https://id.example.com/.well-known/jwks.json',
issuer: 'https://id.example.com/',
audience: 'orders-api',
});For a complete, source-verified workflow, continue with the focused guide below.
Key Entry Points
| Entry point | Use it to |
|---|---|
createJwtAuthInterceptor | Verify bearer tokens with JWKS, public keys, or a shared secret. |
createAuthzInterceptor | Apply explicit allow and deny rules. |
requireAuthContext | Read the verified identity in a handler. |
Runtime boundaries and extension seams remain in Connectum Runtime Architecture.
Learn / Configure / API Reference
- Learn: Focused guide
- Configure: Task and configuration guidance
- API reference: Exact options and symbols
- Package API index: Generated TypeDoc
- Source: @connectum/auth on GitHub
Related Modules
Compare all Connectum packages by capability.