@cybercommand/authentik (0.1.0)

Published 2026-08-31 01:53:05 +00:00 by cyberbrein

Installation

@cybercommand:registry=
npm install @cybercommand/authentik@0.1.0
"@cybercommand/authentik": "0.1.0"

About this package

@cybercommand/authentik

Shared Authentik integration helpers for the control-plane and tenant apps.

This package owns the platform's Authentik vocabulary: tenant group names, environment parsing, API clients, group membership sync, identity administration, OIDC provisioning, and token verification.

What Belongs Here

  • Authentik environment parsing and URL helpers.
  • Tenant access group naming rules.
  • Thin Authentik API clients.
  • Group membership sync for tenant access.
  • Platform OIDC app provisioning.
  • Forward-auth and OIDC identity helpers.

What Does Not Belong Here

  • Control-plane route handlers.
  • Tenant business permissions.
  • Product registry behavior.
  • UI components.
  • Secrets storage or key brokering.

Usage

import { GroupMembershipSync, loadAuthentikEnv } from '@cybercommand/authentik';

const env = loadAuthentikEnv(process.env);
const sync = GroupMembershipSync.fromEnv(env);
await sync.grantTenantAccess({ productId: 'cybercheck', slug: 'acme' }, 'admin@example.com');

Repo Split Role

When products move into their own repos, they should import this package for shared Authentik contracts instead of copying group-name or identity parsing logic.

Dependencies

Dependencies

ID Version
jose ^6.2.3
zod ^4.4.3

Development dependencies

ID Version
@types/node ^25.9.2
tsx ^4.22.4
typescript ^6.0.3
Details
npm
2026-08-31 01:53:05 +00:00
0
latest
31 KiB
Assets (1)
Versions (1) View all
0.1.0 2026-08-31