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.
- Runtime
- Rust / Axum
- Storage
- PostgreSQL
- Version
- v0.6.0
- License
- Apache 2.0
Runtime capabilities
All guidesOIDC / SAML
Single sign-on
Sign people in through their company identity provider.
SCIM 2.0Directory sync
Create users and groups from a customer directory.
Roles / ResourcesPermissions
Check who can perform an action on a resource.
CloudEventsAudit logs
Record what changed and export the history for one organization.
API keys / OAuthService accounts
Give each integration its own identity and credentials.
Webhooks / HTTPLifecycle events
Send changes to your backend or read them from an event feed.
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.
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" },
});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" }
}'