Open Enterprise

Self-hosted runtime

Enterprise identity
for B2B apps.

Add single sign-on, directory sync, permissions, and audit logs to your application. Run Open Enterprise as a service or embed it in Rust.

An orange circuit board slides into a metal enclosure.
Runtime architecture
Runtime
Rust / Axum
Storage
PostgreSQL
Version
v0.6.0
License
Apache 2.0

Runtime capabilities

All guides

Application integration

Check a permission

Your backend asks the runtime whether a user can perform an action. The response contains an allowed boolean.

Set the endpoint and service key on your backend. Use the organization, user, and resource IDs from your application.

TypeScript
import { EnterpriseClient } from "@open-enterprise/sdk";

const runtime = new EnterpriseClient({
  endpoint: process.env.ENTERPRISE_ENDPOINT!,
  apiKey: process.env.ENTERPRISE_API_KEY!,
});

const decision = await runtime.authorization.check({
  organizationId: "org_demo",
  subjectId: "usr_example",
  action: "project:delete",
  resource: { type: "project", id: "project_123" },
});
Shell
curl --request POST \
  "$ENTERPRISE_ENDPOINT/v1/authorization/check" \
  --header "Authorization: Bearer $ENTERPRISE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "organization_id": "org_demo",
    "subject_id": "usr_example",
    "action": "project:delete",
    "resource": { "type": "project", "id": "project_123" }
  }'

Search documentation