Use case

Auth for large organizations that review everything.

A security team will ask where the data lives, who can read the code, how people and agents are provisioned and removed, and what the audit trail contains. This page answers those questions for theAuth, including the ones where the answer is "that part is yours".

The problem

Procurement and security review decide the timeline.

Large customers rarely object to a feature. They object to a gap in the questionnaire: a vendor that holds their directory data, a login service with no exit, an AI agent that acts under a shared service account no one can attribute.

An auth library you run yourself changes several of those answers. The code is MIT licensed and readable, the data sits in your database in your region, and nothing leaves your infrastructure unless you send it. The cost is that the controls, and the evidence for them, are yours to operate.

The theAuth answers

Each question, with what ships and what does not.

Where does identity data live?self-hosted
In your database: SQLite, PostgreSQL, MySQL or Cloudflare D1 in TypeScript, and memory, SQLite, Postgres or MySQL in Go. There is no theAuth service in the path. A hosted theAuth Cloud is in early access and optional.
Federation and provisioningSAML, OIDC, SCIM
SAML 2.0 and OIDC SSO connections routed by email domain with just-in-time provisioning, and SCIM 2.0 for users and groups with a bearer token. Go has its own SAML service provider and SCIM. See SSO and SCIM.
Roles and organizationsRBAC
Organizations with invitation, per-organization roles and member caps. Tenant tagging exists for agents, but theAuth does not enforce isolation between tenants for you, so scope your own resource checks.
Agents and service accountsagent identity
Each agent has an owner, scoped permissions and an audit row per decision, and can be revoked on its own. That answers "which automation touched this record" without a shared credential. See agent identity.
Audit and SIEMexport, sinks
TypeScript exports the audit log as JSON or CSV. Go keeps an append-only log and streams to Splunk HEC, OTLP and a CloudEvents-style webhook. If the Go buffer fills, events are dropped and counted instead of slowing sign-in, which is a tradeoff to explain to your reviewer.
Privacy requestsGDPR tools
Self-service export, delete and anonymize endpoints. Your policies and processor agreements stay your responsibility.
Frameworks and certificationsmapping, not certified
The documentation maps audit fields to EU AI Act, NIST, SOC 2 and ISO 42001 controls as evidence for your own assessment. theAuth holds no certification against any of them, and we do not say it makes you compliant.
Supply chain and disclosureSigned releases, SBOM
Go releases carry an SBOM and Sigstore signatures. Vulnerabilities are reported privately through the security policy. The threat model and stability policy are public.

Pitfalls

Where enterprise rollouts slip.

  • Promising a certification.There is none to promise. Say "mapped to SOC 2 controls" and attach your own evidence.
  • Assuming isolation between tenants.Tag agents with a tenant, then enforce the boundary in your own authorization checks.
  • Skipping the offboarding test.Run the SCIM deprovisioning path against the customer's identity provider in staging before the review.
  • Forgetting you operate it.Backups, key rotation and upgrades are yours. Write them into the runbook the reviewer asks for.
  • Treating the Go and TypeScript libraries as identical.They share a model, not a feature list. Check the feature page for what each supports.

Get started

Give your first agent an identity.

Install the package, create an agent with scoped permissions, and read its first audit record. The core runs on Postgres, SQLite, MySQL or D1, and the Go module needs a single go get.

  • npm install @glinr/theauth
  • go get github.com/glincker/theauth-go/v2
Or skip hosting with theAuth Cloud