Directories
¶
| Path | Synopsis |
|---|---|
|
Package account serves the /account/* self-service endpoints: the agents and delegation grants a user owns.
|
Package account serves the /account/* self-service endpoints: the agents and delegation grants a user owns. |
|
Package admin serves the /admin/v1 organization-scoped API: user, session, role, audit and OAuth account management.
|
Package admin serves the /admin/v1 organization-scoped API: user, session, role, audit and OAuth account management. |
|
Package agent owns the agent identity lifecycle.
|
Package agent owns the agent identity lifecycle. |
|
handlers
Package handlers serves the organization-scoped agent and delegation admin endpoints under /admin/v1/organizations/{orgID}.
|
Package handlers serves the organization-scoped agent and delegation admin endpoints under /admin/v1/organizations/{orgID}. |
|
Package apitokens implements scoped API tokens, the RFC 8628 device grant, agent tokens and the HTTP routes and middleware around them.
|
Package apitokens implements scoped API tokens, the RFC 8628 device grant, agent tokens and the HTTP routes and middleware around them. |
|
Package as implements the OAuth 2.1 and MCP authorization server runtime: JWKS and key rotation, the authorize, token, revoke and introspect services, dynamic client registration, RFC 8414 and RFC 9728 metadata, and RFC 8693 token exchange.
|
Package as implements the OAuth 2.1 and MCP authorization server runtime: JWKS and key rotation, the authorize, token, revoke and introspect services, dynamic client registration, RFC 8414 and RFC 9728 metadata, and RFC 8693 token exchange. |
|
handlers
Package handlers serves the OAuth 2.1 and MCP authorization server HTTP endpoints: metadata, JWKS, authorize, token, revoke, introspect and register.
|
Package handlers serves the OAuth 2.1 and MCP authorization server HTTP endpoints: metadata, JWKS, authorize, token, revoke, introspect and register. |
|
Package audit defines the Emitter seam that internal service packages depend on.
|
Package audit defines the Emitter seam that internal service packages depend on. |
|
Package authevents defines the PII-minimal authentication event stream.
|
Package authevents defines the PII-minimal authentication event stream. |
|
Package bootstrap gates creation of the first user behind a one-time setup token.
|
Package bootstrap gates creation of the first user behind a one-time setup token. |
|
Package chain provides pure helpers for RFC 8693 actor chains: depth, scope subset, duration narrowing and act-claim construction.
|
Package chain provides pure helpers for RFC 8693 actor chains: depth, scope subset, duration narrowing and act-claim construction. |
|
Package cimd implements Client ID Metadata Documents per the MCP Authorization specification 2025-11-25.
|
Package cimd implements Client ID Metadata Documents per the MCP Authorization specification 2025-11-25. |
|
Package clientauthcache caches successful client_secret verifications (Argon2id), so hot endpoints do not pay the Argon2 cost on every request.
|
Package clientauthcache caches successful client_secret verifications (Argon2id), so hot endpoints do not pay the Argon2 cost on every request. |
|
Package delegation owns the delegation grant lifecycle: grant, list, revoke, and the Active and NarrowScope helpers the AS uses for token exchange and introspection, so those helpers live in one place.
|
Package delegation owns the delegation grant lifecycle: grant, list, revoke, and the Active and NarrowScope helpers the AS uses for token exchange and introspection, so those helpers live in one place. |
|
Package doctor evaluates security-posture checks over a plain input struct.
|
Package doctor evaluates security-posture checks over a plain input struct. |
|
Package dpop implements RFC 9449 DPoP for sender-constrained tokens.
|
Package dpop implements RFC 9449 DPoP for sender-constrained tokens. |
|
Package emailnorm canonicalizes email addresses, so uniqueness checks and lookups agree on case, whitespace and Unicode forms.
|
Package emailnorm canonicalizes email addresses, so uniqueness checks and lookups agree on case, whitespace and Unicode forms. |
|
Package httpsec holds the Secure cookie rewriting and the Origin allowlist check.
|
Package httpsec holds the Secure cookie rewriting and the Origin allowlist check. |
|
Package httpx holds shared HTTP helpers for the extracted handler packages: the error to status mapping, the {code,message} body, the ULID path parser and the client IP shim.
|
Package httpx holds shared HTTP helpers for the extracted handler packages: the error to status mapping, the {code,message} body, the ULID path parser and the client IP shim. |
|
Package identitylink owns the identity-linking methods: link an OAuth account, link a password, merge accounts and unlink a provider.
|
Package identitylink owns the identity-linking methods: link an OAuth account, link a password, merge accounts and unlink a provider. |
|
Package importer inserts accounts, TOTP secrets and passkeys migrated from another system.
|
Package importer inserts accounts, TOTP secrets and passkeys migrated from another system. |
|
Package jwt implements the JWT surface the authorization server needs: Ed25519 (EdDSA) signing and verification of RFC 9068 access tokens (typ "at+jwt"), plus the RFC 7519 registered claims.
|
Package jwt implements the JWT surface the authorization server needs: Ed25519 (EdDSA) signing and verification of RFC 9068 access tokens (typ "at+jwt"), plus the RFC 7519 registered claims. |
|
Package magiclink owns the request and consume flow for emailed magic-link sign-in tokens.
|
Package magiclink owns the request and consume flow for emailed magic-link sign-in tokens. |
|
Package models is the internal home for the persisted entities (User, Session, OAuthClient, Agent and others), the Permission catalog, and the sentinel errors shared by storage adapters and services.
|
Package models is the internal home for the persisted entities (User, Session, OAuthClient, Agent and others), the Permission catalog, and the sentinel errors shared by storage adapters and services. |
|
Package oauth owns the user-facing OAuth 2.0 login state machine: PKCE state generation at /start and code exchange at /callback.
|
Package oauth owns the user-facing OAuth 2.0 login state machine: PKCE state generation at /start and code exchange at /callback. |
|
handlers
Package handlers exposes the /auth/providers/{name}/start and /callback endpoints for user-facing OAuth login (Google, GitHub, Discord, Microsoft).
|
Package handlers exposes the /auth/providers/{name}/start and /callback endpoints for user-facing OAuth login (Google, GitHub, Discord, Microsoft). |
|
Package observability is the pluggable tracing + metrics adapter surface the theauth-go library uses to expose spans and counters without pulling in OpenTelemetry, Prometheus, or any other vendor as a hard dependency.
|
Package observability is the pluggable tracing + metrics adapter surface the theauth-go library uses to expose spans and counters without pulling in OpenTelemetry, Prometheus, or any other vendor as a hard dependency. |
|
Package organizations owns create, read and member management for multi-tenant organizations.
|
Package organizations owns create, read and member management for multi-tenant organizations. |
|
handlers
Package handlers exposes the /auth/orgs/* HTTP endpoints for multi-tenant organization create / read / membership management.
|
Package handlers exposes the /auth/orgs/* HTTP endpoints for multi-tenant organization create / read / membership management. |
|
Package password owns the email and password signup, signin and reset flow.
|
Package password owns the email and password signup, signin and reset flow. |
|
handlers
Package handlers exposes the /auth/email-password/* endpoints for signup, signin, forgot and reset.
|
Package handlers exposes the /auth/email-password/* endpoints for signup, signin, forgot and reset. |
|
Package pathprefix holds the route prefix default and validation shared by the root package and the internal service packages.
|
Package pathprefix holds the route prefix default and validation shared by the root package and the internal service packages. |
|
Package rar implements the data model for OAuth 2.0 Rich Authorization Requests (RFC 9396): parsing the authorization_details parameter, serialising it for storage and token claims, and the narrowing rules used when a client asks for less than it was granted.
|
Package rar implements the data model for OAuth 2.0 Rich Authorization Requests (RFC 9396): parsing the authorization_details parameter, serialising it for storage and token claims, and the narrowing rules used when a client asks for less than it was granted. |
|
Package ratelimit holds the per-key request limiter and the trusted-proxy aware client IP helpers.
|
Package ratelimit holds the per-key request limiter and the trusted-proxy aware client IP helpers. |
|
Package rbac owns role and permission management: permission seeding, organization-scoped role CRUD, grant and revoke, and the HasPermission and PermissionsForUser checks used by middleware.
|
Package rbac owns role and permission management: permission seeding, organization-scoped role CRUD, grant and revoke, and the HasPermission and PermissionsForUser checks used by middleware. |
|
Package revocation carries credential revocation events, the bus that fans them out, and the watcher that cancels a context when one matches.
|
Package revocation carries credential revocation events, the bus that fans them out, and the watcher that cancels a context when one matches. |
|
Package safehttp builds outbound HTTP clients that refuse to connect to non-public addresses.
|
Package safehttp builds outbound HTTP clients that refuse to connect to non-public addresses. |
|
Package saml owns the SAML service provider surface: connection CRUD, SP-initiated login, the ACS backend, per-connection SP metadata, and the AuthnRequest tracker that blocks replay.
|
Package saml owns the SAML service provider surface: connection CRUD, SP-initiated login, the ACS backend, per-connection SP metadata, and the AuthnRequest tracker that blocks replay. |
|
handlers
Package handlers exposes the SAML SP-flow endpoints (/auth/saml/{connectionId}/login, /acs and /metadata).
|
Package handlers exposes the SAML SP-flow endpoints (/auth/saml/{connectionId}/login, /acs and /metadata). |
|
Package samltest provides an in-process SAML IdP for end-to-end testing of the SP integration.
|
Package samltest provides an in-process SAML IdP for end-to-end testing of the SP integration. |
|
Package scim holds the SCIM parsing helpers the root package uses internally.
|
Package scim holds the SCIM parsing helpers the root package uses internally. |
|
handlers
Package handlers exposes the /scim/v2/* SCIM 2.0 resource and discovery endpoints, plus the per-organization SCIM token CRUD endpoints under /auth/orgs/{orgId}/scim/tokens.
|
Package handlers exposes the /scim/v2/* SCIM 2.0 resource and discovery endpoints, plus the per-organization SCIM token CRUD endpoints under /auth/orgs/{orgId}/scim/tokens. |
|
Package session owns the Issue and Validate primitives for opaque session tokens.
|
Package session owns the Issue and Validate primitives for opaque session tokens. |
|
Package storagestub holds capability stubs that report ErrStorageMissingCapability.
|
Package storagestub holds capability stubs that report ErrStorageMissingCapability. |
|
Package testhooks lets black-box tests reach unexported root behavior without widening the public API.
|
Package testhooks lets black-box tests reach unexported root behavior without widening the public API. |
|
Package theauthtest provides shared test helpers for building TheAuth instances and creating users in tests across internal packages.
|
Package theauthtest provides shared test helpers for building TheAuth instances and creating users in tests across internal packages. |
|
Package throttle implements login and MFA attempt limiting: per (IP, identifier) exponential backoff after a grace period, plus per-key lockout with automatic expiry.
|
Package throttle implements login and MFA attempt limiting: per (IP, identifier) exponential backoff after a grace period, plus per-key lockout with automatic expiry. |
|
Package totp owns second-factor TOTP: enrollment, verification, recovery codes, and the pending_2fa session minted at sign-in.
|
Package totp owns second-factor TOTP: enrollment, verification, recovery codes, and the pending_2fa session minted at sign-in. |
|
handlers
Package handlers exposes the /auth/totp/* endpoints for TOTP enrollment, verification, recovery and removal.
|
Package handlers exposes the /auth/totp/* endpoints for TOTP enrollment, verification, recovery and removal. |
|
Package trusteddevice implements remember-this-device records that let a password sign-in skip the TOTP prompt for a configurable window.
|
Package trusteddevice implements remember-this-device records that let a password sign-in skip the TOTP prompt for a configurable window. |
|
Package wavt is the WebAuthn virtual test helper used to drive the v0.5 passkey ceremony tests.
|
Package wavt is the WebAuthn virtual test helper used to drive the v0.5 passkey ceremony tests. |
|
Package webauthn owns passkey (FIDO2 WebAuthn L3) registration and login ceremonies and the in-memory store of in-flight challenges.
|
Package webauthn owns passkey (FIDO2 WebAuthn L3) registration and login ceremonies and the in-memory store of in-flight challenges. |
|
handlers
Package handlers exposes the /auth/webauthn/* endpoints for passkey registration, login and credential management.
|
Package handlers exposes the /auth/webauthn/* endpoints for passkey registration, login and credential management. |
Click to show internal directories.
Click to hide internal directories.