AiHummer docs
v1.0.x
RU EN

Enterprise SSO

v1.0.x · updated 2026-06-26

AiHummer authenticates administrators and users against your identity provider. The primary, production-path control is OIDC, which protects the admin API; SAML, LDAP/AD and SCIM provisioning are also implemented, alongside local auth for setups without an external IdP.

OIDC protects the admin API

OIDC is deny-by-default and is the control that protects /v1/admin/*. Configure it with AIHUMMER_OIDC_ISSUER (and the related client settings).

# /home/.aihummer/etc/gateway.env
AIHUMMER_OIDC_ISSUER=https://idp.example.com/

There is an oidc-setup runbook (docs/runbooks/oidc-setup.md) that walks through registering the client and wiring the issuer.

[!DANGER] Without OIDC configured, the admin API trusts dev headers for identity. That mode is for local development only — never expose an admin endpoint to the internet without OIDC (or another enforced auth) in front of it. Configure AIHUMMER_OIDC_ISSUER before any non-local deployment.

[!TIP] Layer OIDC with the IP allowlist and scoped API keys so that admin access is gated by identity, network and privilege together.

SAML

SAML single sign-on is implemented, exposing the standard service-provider endpoints:

EndpointPurpose
GET /saml/metadataService-provider metadata for your IdP.
POST /saml/acsAssertion Consumer Service — receives the SAML response.
GET /saml/loginInitiates the SAML login flow.

[!NOTE] SAML is implemented but is not fully live-proven against every IdP. Treat it as available and validate it against your specific identity provider before relying on it in production.

LDAP / Active Directory

LDAP/AD authentication is implemented for environments that authenticate users against a directory server.

[!NOTE] As with SAML, LDAP/AD is implemented but not fully live-proven across all directory configurations. Test it against your own directory before rollout.

SCIM provisioning

SCIM lets your IdP provision and de-provision users automatically, via the standard SCIM v2 user endpoints:

EndpointPurpose
GET /scim/v2/UsersList / query provisioned users.
POST /scim/v2/UsersCreate a user.
GET /scim/v2/Users/{id}Read a single user.
PUT /scim/v2/Users/{id}Update a user.
DELETE /scim/v2/Users/{id}De-provision a user.

Provisioning through SCIM keeps the user directory in sync with your IdP so that joiners and leavers are reflected without manual admin work.

Local auth

When there is no external IdP, AiHummer supports local authentication. On a fresh database the gateway prints a one-time admin password to the log on first start; log in and change it immediately. Local auth is suitable for small or isolated deployments, but for organizations with an IdP, OIDC remains the recommended production path.

Choosing an approach

MechanismBest forStatus
OIDCProtecting the admin API in any non-local deploymentRecommended production path
SAMLEnterprises standardized on SAML SSOImplemented; validate against your IdP
LDAP / ADDirectory-based authenticationImplemented; validate against your directory
SCIMAutomated user provisioning from the IdPImplemented (SCIM v2 Users)
Local authSmall or isolated deployments without an IdPBuilt in

Where to next