Enterprise authentication requirements: a technical checklist
Enterprise customers do not buy isolated features. They buy an onboarding experience, an access model, a governance story, and confidence that offboarding or policy changes will behave predictably. This checklist helps you prepare a self-hosted Bastionary deployment to meet those requirements without custom glue code.
Model users, tenants, and memberships cleanly
The technical challenge is not simply validating credentials. The challenge is keeping users, tenants, sessions, and entitlements aligned while the product keeps changing. If those objects are modeled poorly, every new enterprise ask turns into custom code.
Treat identity objects as first-class data. Users, organizations, memberships, service credentials, seat counts, and administrative actions should exist as explicit records with well-defined ownership. Once that model is stable, product teams can move faster because policy changes stop requiring ad hoc migrations.
A reliable schema starts with a clean boundary between identities and tenants:
CREATE TABLE memberships (
id UUID PRIMARY KEY,
user_id UUID NOT NULL REFERENCES users(id),
org_id UUID NOT NULL REFERENCES organizations(id),
role TEXT NOT NULL,
status TEXT NOT NULL,
UNIQUE (user_id, org_id)
);
This separation makes it clear where identity proof ends, where policy begins, and where entitlement logic should live instead of being hidden in random callbacks or support-only scripts.
Implement SAML SSO for enterprise tenants
SAML remains the default expectation for most enterprise single sign-on. A correct implementation covers configuration, token handling, and error cases.
- Allow each tenant to upload its own IdP metadata XML or provide issuer, SSO URL, and certificate values separately.
- Validate the SAML response signature before accepting any claims.
- Map standard claims such as
email,givenName,surname, andnameIDto local user attributes. - Support Just-In-Time provisioning when the user does not exist, and account linking when the email already matches a local account.
- Handle
AuthnContextrequirements such as MFA level if the customer requests it. - Expose a clear error page when SAML assertion validation fails, including a request identifier for support.
Store tenant-specific SAML settings in the organization record. Keep signing certificates in a secrets store, not in the application database.
Add SCIM for directory synchronization
Enterprise admins expect user lifecycle changes in their identity provider to propagate to your application automatically. SCIM is the standard way to satisfy that expectation.
- Expose a SCIM 2.0 service provider endpoint protected by a tenant-specific bearer token.
- Implement
GET /Users,POST /Users,PUT /Users,PATCH /Users, andDELETE /Usersfor user provisioning and deactivation. - Implement
GET /Groups,POST /Groups,PUT /Groups, andPATCH /Groupsfor role or team mapping. - Return the correct HTTP status codes and error schemas so directories like Azure AD and Okta can retry transient failures correctly.
- Write every SCIM change to the audit log, including the source IP and the user identifier affected.
Deactivation should revoke sessions immediately. Do not rely on token expiration alone to remove access for a terminated employee.
Enforce data residency and key management
Large customers increasingly ask where identity data lives and who controls the encryption keys. With a self-hosted deployment, you can answer both questions concretely.
- Deploy Bastionary in the region or data center the customer requires.
- Use customer-managed encryption keys for sensitive columns such as password hashes and refresh tokens.
- Document retention rules for sessions, audit logs, and inactive accounts.
- Provide a data export path so the customer can retrieve its users and audit history on request.
Keep configuration drift under control with infrastructure as code. A reproducible deployment makes residency and key-management claims auditable.
Build audit and governance controls
Enterprise procurement teams will ask how you track access, policy changes, and support actions. Prepare by designing auditability into the platform from the start.
- Record every authentication, authorization, SCIM change, admin action, and session revocation.
- Include timestamps, actor identifiers, IP addresses, user agents, and the resulting state change.
- Distinguish between customer-initiated actions, support actions, and automated system actions.
- Expose an admin dashboard where tenant admins can review events for their own organization.
- Make audit logs tamper-evident by appending them to a write-once store or hashing them periodically.
When audit data is reliable, security questionnaires and compliance reviews become a matter of producing evidence instead of reconstructing history.
Separate human and machine identities
Service credentials, admin sessions, tenant-level policies, and offline licensing artifacts should not all behave like end-user browser sessions. Each principal type needs its own lifecycle and audit trail.
- Use long-lived API keys or mTLS certificates for service accounts, with rotation enforced.
- Require stronger authentication factors for admin access than for end-user access.
- Apply role-based or attribute-based access control to tenant-level policy changes.
- Issue short-lived access tokens and support explicit revocation for every principal type.
Keeping these boundaries clear prevents a compromised service key from becoming a full admin takeover.
Next steps
- Review your current user and organization schema against the normalized membership model.
- Configure SAML and SCIM on a staging Bastionary tenant.
- Document your data residency, encryption, and retention settings for security questionnaires.
- Run an end-to-end test of provisioning, login, deactivation, and audit export with a sample enterprise directory.
Run it yourself
Bastionary is free, open-source software. Follow the quick start to have it running on your own server, or browse the releases on Git.