Skip to main content

Package feature map

Everything implemented in goauth and where to read about it.

Core module (github.com/izetmolla/goauth)

FeatureSource filesDocumentation
HTTP handler / routergoauth.goRoutes
Config & validationconfig.go, goauth.goConfig reference
Providers interfaceprovider.goProviders overview
OAuth flowoauth.go, actions_auth.goOAuth & OIDC
Session issue/readsession.goSession strategies
Bearer tokenstokens.goBearer tokens
CSRFcookies.go, actions_simple.goCSRF & cookies
Redirect safetyredirect.goRedirect callback
HTML token callbackcallback_page.goBrowser callback
MFAactions_mfa.goOTP guide
Passkeysactions_passkey.goPasskey
Session list/revokeactions_sessions.goSession management
Email / magic linkactions_email.goEmail & OTP
Errorserrors.goErrors
Checks (PKCE/state)checks.goOAuth
UUID session IDschecks.go, tokens.goBearer tokens

Subpackages

goauth/jwt

FeatureDoc
JWE dir + A256CBC-HS512Session strategies
Secret rotation (multi-secret decode)Config scenarios

goauth/webauthn

FeatureDoc
Registration verify (ES256, attestation none)WebAuthn internals
Assertion verify + sign countPasskey
CBOR / COSE (stdlib)WebAuthn internals

goauth/providers/*

PackageTypeDoc
githubOAuthOAuth
googleOIDCOAuth
appleOIDC form_postproviders README
azureadOIDCAzure AD
oauthGeneric OAuth 2OAuth
oidcGeneric OIDCOAuth
credentialsPasswordCredentials
emailMagic linkOTP guide
otpEmail login codeOTP guide
passkeyWebAuthnPasskey

goauth/adapters/*

PackageMigratorSessionListerAuthenticatorStore
postgresYesYesYes
mysql / mariadbYesYesYes
memoryNoYesYes
redisYesNo
mongodbYesNo
sqladapterDB interface for GORM/sql

Doc: Adapters.

goauth/client

FeatureDoc
goauth.js popup + localStorageClient JS

External: github.com/izetmolla/fiberauth

Fiber v3 middleware — not in this repo; see root README.


Config surface map

Config fieldControls
SecretAll encryption
ProvidersSign-in methods
AdapterPersistence
SessionJWT vs database, lifetime
JWTCustom encode/decode
TokensMobile bearer flow
MFAPost-password OTP
WebAuthnPasskey enable flag
PagesCustom routes
CookiesCross-subdomain SSO
CallbacksSignIn, ResolveUser, JWT, Session, Redirect
EventsAudit hooks

Full detail: Config reference.


HTTP actions map

/auth/session
/auth/csrf
/auth/providers
/auth/signin[/:provider]
/auth/callback/:provider
/auth/signout
/auth/token (Tokens.Enabled)
/auth/mfa/verify (MFA.Enabled)
/auth/sessions (SessionLister + DB strategy)

What to read first (developer onboarding)

  1. Config scenarios — pick your stack
  2. Callbacks overview
  3. OTP & verification — if any codes/emails
  4. User creation
  5. Developer cookbook — full production example