← All plugins
golem15.sociallogin

Social login

Social sign-in for golem15.user accounts in SummerCMS applications: /oauth/{provider} and its callback at the PHP user plugin's paths, the SPA one-time-code handoff and a provider registry that applications and plugins extend in Go.

summer plugin:install golem15.sociallogin
Latest version
v0.1.6
Framework
v0.6.0
Requires
golem15.user v0.1.12
Category
Users
Go module
git.golem15.com/golem15/sm-sociallogin-plugin

README

golem15.sociallogin

Social sign-in for golem15.user accounts in SummerCMS applications: /oauth/{provider} and its callback at the PHP user plugin's paths, the SPA one-time-code handoff and a provider registry that applications and plugins extend in Go.

import _ "git.golem15.com/golem15/sm-sociallogin-plugin"

Module git.golem15.com/golem15/sm-sociallogin-plugin, package sociallogin, plugin ID golem15.sociallogin, requires golem15.user.

Overview

The plugin ports the PHP user plugin's SocialAuth component in its SPA mode. The frontend sends the browser to /oauth/{provider}; the plugin seals the OAuth state and the request's context into a short-lived encrypted cookie and redirects to the provider. The provider returns to /oauth/{provider}/callback, where the plugin checks the state, lets the provider exchange the code, matches the account and sends the browser back to the frontend callback with a one-time code. The frontend redeems the code at GET /_user/api/v1/oauth-complete for the session token and the user payload, so no JWT ever appears in a URL.

An application without this plugin has no /oauth/{provider} routes, no goth dependency and no provider configuration; golem15.user's GET /_user/api/v1/oauth-providers then lists no providers.

Features

  • Built-in providers google (Google), facebook (Facebook), github (GitHub) and microsoft (Microsoft Entra ID, v2 endpoint, configurable tenant), driven through goth's provider packages without its session helper: the plugin keeps the provider session in its own state cookie. Every provider call has a timeout.
  • A provider registry with plugin-owned types (classes.Provider, classes.Profile, classes.ProviderConfig): a provider is a name, a button label and a factory that builds it per request from the current credentials.
  • A per-provider state cookie summer_oauth_<provider>, sealed with AES-256-GCM under a key derived from app.key, HttpOnly, SameSite=Lax, Path=/oauth, 600 seconds; the callback clears it on every outcome and checks the state in constant time.
  • frontend_callback validation (exact path, exact host allow-list, URL rebuilt from its parts) and a local-only return_to.
  • One-time completion codes (64 characters, 5 minutes) in the application cache, sealed and consumed atomically with cooler.Cache.Pull.
  • Account matching ported from PHP (see the table below), with the pending registration branch: the frontend shows a consent screen and completes it at POST /_user/api/v1/oauth-register-complete.
  • New accounts are activated and password-less (has_self_set_password false, a random password nobody knows); the handle comes from the provider's name or the email's local part; marketing_consent is set on opt-in. The consent details (terms, privacy, marketing, parental authority, policy versions, IP, user agent, provider, password_bootstrap_source oauth_registration) travel in the user.Register event's payload for the application to record. No group is assigned.
  • An optional beta gate (beta_key) on both account-creation paths, compared in constant time; the start request's key travels to the pending completion.
  • Provider tokens are stored on the identity row (encrypted columns) with token_expires_at; the avatar goes only into profile_data.avatar.
  • Microsoft tenant: a Microsoft (Entra) sign-in stores the directory tenant the account signed in from in the identity's profile_data.tenant_id (from the tid claim of the token endpoint's id_token, a lower-case GUID) and reports it as Profile.TenantID. The key is written only when the tenant is known; other providers' profile_data keeps exactly name, email and avatar.
  • Opt-in token cookie: token_cookie: true sets golem15.user's token cookie on completion and leaves token out of the body.

Which provider emails count as verified

Only a verified email links a social sign-in to an existing account with the same address:

Provider Verified when
Google the userinfo answer carries verified_email (or email_verified) as a boolean true
GitHub always: the email is the address /user/emails marks primary and verified (the public profile email is ignored); without one the email is empty and the sign-in goes to the pending screen (fb_no_email)
Facebook never
Microsoft never: the Graph mail (or a userPrincipalName that looks like an address) can be set by a tenant administrator

Scopes: Google openid email profile with the account chooser; GitHub read:user user:email; Microsoft openid profile email offline_access User.Read; Facebook the fields id,name,email,first_name,last_name,picture (the Graph API version follows the Facebook app's default). Microsoft sign-ins have no avatar (Graph's photo URL needs a token).

Account matching

Situation Outcome
Identity (provider, provider id) exists Sign in that user
Provider shared no email Pending, reason=fb_no_email
Email matches a user (case-insensitive, soft-deleted included), the provider verified it and the account's owner proved the address (users.email_verified_at: activated with the mailed code, or a password set through the mailed reset code) Link the identity and sign in (a soft-deleted account is restored)
Email matches an account without proof of its address (users.email_verified_at empty: registered through /register with activate_mode: auto, created by an administrator or by a social sign-in, or from before sm-user-plugin v0.1.5), even with a verified email Pending, reason=unverified_match; completion answers 422 email_exists_link_account. The owner links the provider from the settings, or proves the address with a password reset (which enables auto-linking but removes no identity already linked)
Email matches but the provider did not verify it Pending, reason=unverified_match; completion answers 422 email_exists_link_account
No match, action=login Pending (no reason)
No match, action=register Create the account at the callback: allow_registration, the per-IP register throttle, terms_accepted and privacy_accepted (and parental_authority when sent) at most 600 seconds old, the beta key

A pending sign-in keeps the provider's tenant in its payload (tenant_id, omitted when empty), so the identity a completion stores has profile_data.tenant_id as well.

The proof follows the address: an email change through golem15.user's POST /update or its admin Users form clears users.email_verified_at, so an account that proved one address and then switched to someone else's goes pending for that address until its owner proves it again.

Proving the address does not remove identities already linked. If someone created the account through a provider that does not verify emails (Facebook, Microsoft) with the owner's address, their identity stays linked after the owner's password reset and still signs in. The owner removes it from the identities list in the settings (golem15.user's identity routes, where the host application mounts them).

Every sign-in requires an activated account without a ban. A deactivated (soft-deleted) account is restored by a social sign-in exactly as by a golem15.user password login, with the reactivate mail; a banned one is refused on every path (identity, verified email match, link, pending completion) and never restored. Pending redirects are {callback}?pending_registration=<code>[&reason=]&provider=<p>[&email=], in this order; the pending code lives 10 minutes.

  • golem15.user's provider list is fed from the registry: enabled providers (client id and secret set) in registration order.

Events

classes.SignedInEvent (festival name classes.SignedInEventName, sociallogin.SignedIn) fires after every successful social sign-in: a login through an identity or a verified email match, an account created by the sign-in (at the callback or on the pending screen), a link, and a pending completion, including a sign-in that restored a deactivated account. It fires once per sign-in, after the identity is stored and golem15.user's FinishLogin ran (a deactivated account is already restored), before the session token is minted, outside any transaction. A sign-in a login gate held back for a second factor fires it when the factor completes instead (see Two-factor sign-in). Fields:

Field Meaning
User the signed-in account
Provider the provider's registry name
ProviderID the identity's provider_id
IdentityID the id of the golem15 OAuth identity row
TenantID the directory tenant (Profile.TenantID, Microsoft only), else empty
Email the address the provider reported, possibly empty
Action ActionLogin, ActionRegister or ActionLink
Created true when this sign-in created the account

The user row is read again after the listeners ran, so a listener that writes it (an organisation assigned by tenant or email domain, for example) changes the token's user and the returned payload. A listener error is logged at Error level and never fails or undoes the sign-in; the same holds for golem15.user's user.Register and user.Created listeners during a social registration.

app.Events.Listen[*classes.SignedInEvent]("acme", func(ctx context.Context, ev *classes.SignedInEvent) error {
	if ev.Provider == "microsoft" && ev.TenantID != "" {
		// assign ev.User to the organisation of ev.TenantID
	}
	return nil
})

Two-factor sign-in

Every social sign-in except a link consults golem15.user's login gates (usercontrollers.CheckLoginGates, source userclasses.LoginSourceSocial) before golem15.user's FinishLogin, before SignedInEvent and before any token exists. Without a gate, or when every gate allows the sign-in, nothing changes. A two-factor plugin (golem15.mfa) registers a gate that challenges social sign-ins only when its social-login setting (two_factor_social_login) is on; it is off by default, as in PHP.

  • With a challenge, oauth-complete (and oauth-register-complete when it signs an existing account in) answers 200 with exactly the gate's body, for example {"two_factor_required":true,"challenge_token":"…","available_methods":["totp"],"expires_at":"…"}, instead of {token, user, action, return_to}. No token and no token cookie are issued; the frontend completes the challenge at the two-factor plugin's routes, which answer {token, user}. The SPA callback page must handle two_factor_required before an application turns the setting on.
  • A challenged sign-in does not restore a deactivated account and does not fire SignedInEvent at the callback: the second factor's completion runs golem15.user's FinishLogin and its login event (source two_factor). The identity itself is stored (or refreshed) before the gate, as the provider already proved it.
  • The held-back SignedInEvent is kept, sealed, in the application cache under the SHA-256 of the gate's challenge_token (prefix oauth-2fa-signin:, until the challenge's expires_at, at most ChallengedSignInTTL). The plugin listens to golem15.user's login event (OnTwoFactorLogin): on a login with source two_factor it reads the user's challenges completed in the last five minutes from golem15.mfa's golem15_user_two_factor_challenges table and fires the held-back event of each once, with the sign-in's provider, identity, tenant, email, action and created flag. It fires after the second factor's session token was minted, so a listener's writes (an organisation assigned by tenant) reach the user's later requests but not the completion's own user payload. A multi-instance application needs a shared cache (Redis), as for the completion codes.
  • A gate that refuses (any status other than 200, for example the second-factor failure cap) sends the browser to the callback with ?error= and the two_factor_unavailable message; on oauth-register-complete it is a 422 with that message. A gate error fails closed: the callback redirects with the generic error, no completion code is issued, oauth-register-complete answers 500.
  • Linking (action=link) is never gated: the user is already signed in.
  • Trusted devices never skip a social challenge: a social sign-in carries no request body with a trusted-device token.

Routes

Method Path Middleware Purpose
GET /oauth/{provider} throttle:20,1 Start: mode (ignored, SPA only), action (login default, register, link), frontend_callback, return_to, link_ticket
GET /oauth/{provider}/callback throttle:20,1 Provider return: ?code= on success, ?error=<message> otherwise
GET /_user/api/v1/oauth-complete?code= throttle:user-api 200 {token, user, action, return_to}, or the login gate's two_factor_required body (see Two-factor sign-in); 422 empty code; 410 missing or used code
POST /_user/api/v1/oauth-register-complete throttle:user-api pending_code, terms_accepted, privacy_accepted, marketing_consent, optional parental_authority and beta_key (JSON or form). 200 {token, user, action, return_to}; 422 {error, errors: {terms_accepted, privacy_accepted}} for missing consent, 422 {error} for an unverified email match, a beta key, a closed or throttled registration, 422 {error, errors} for a rejected account; 410 for a missing, expired or used code

action=register start requests also take terms_accepted, privacy_accepted, marketing_consent (true for 1, true, on, yes) and parental_authority; any start request may carry beta_key.

A 422 from oauth-register-complete keeps the pending code, so the user can fix the form and retry; the code is consumed only by a successful completion (two concurrent submissions give one 200 and one 410).

| POST | /_user/api/v1/oauth-link-ticket | throttle:user-api | Authenticated (bearer, then the token or auth_token cookie): 200 {link_ticket, expires_in: 60}; 401 {"error":true,"message":"Unauthorized"} |

The start request is checked in this order: an unknown provider name (reserved names such as jwks, token or authorize can never be registered) answers 404 and sets no cookie; the frontend_callback is normalised, falling back to default_callback; an action other than login, register or link, a provider without credentials and a link without a user send the browser to the callback with ?error=<message>. At the callback, every error goes to the cookie's callback, or to default_callback when the cookie did not open. No token is ever read from or written to a URL.

action=link attaches the provider to an existing account: the user comes from a one-time link_ticket, else from golem15.user's request user (bearer header, then the token or auth_token cookie, with the blacklist and tokens_valid_after checked). An identity already owned by another user is refused (account_already_linked); the completion's action is link.

Linking from a bearer-token SPA

A top-level navigation cannot carry an Authorization header, so an SPA that keeps its JWT in storage first asks for a ticket and then navigates:

  1. POST /_user/api/v1/oauth-link-ticket with Authorization: Bearer <jwt>; the answer holds link_ticket (64 characters, single use, 60 seconds).
  2. location.href = "/oauth/{provider}?mode=spa&action=link&link_ticket=<ticket>&frontend_callback=<callback>&return_to=/settings".
  3. The callback redirects to <callback>?code=…; oauth-complete answers with action: "link" and a fresh token.

Configuration

Keys under golem15.sociallogin.*, overridable through SUMMER_GOLEM15__SOCIALLOGIN__<KEY> (see config/config.yaml):

Key Default Meaning
frontend_url app.url Public URL of the frontend; its host is allowed in frontend_callback
callback_path /auth/oauth/callback The only path a frontend_callback may have (relative, or absolute on an allowed host)
default_callback frontend_url + callback_path Where results go without a valid frontend_callback
allowed_hosts [] Extra exact hosts for an absolute frontend_callback, for example the www host when the API runs on another host (a list, or comma-separated in the environment)
http_timeout 10 Seconds for every provider call
token_cookie false Completion sets the token cookie (golem15.user auth.cookie.*) instead of returning token
beta_key empty (BETATESTER_KEY) When set, account creation requires this key
consent.terms_version, consent.privacy_version 2024-12-17 Policy versions in the register event's payload
providers.<p>.client_id, .client_secret empty Credentials; a provider is enabled when both are set (after the admin settings override)
providers.microsoft.tenant empty (common) common, organizations, consumers or a tenant ID or domain
providers.<p>.redirect app.url + /oauth/<p>/callback Redirect URI override (register this URI at the provider); without app.url the request's origin is used

At boot the PHP user plugin's environment variables fill their keys when those are empty: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, FACEBOOK_CLIENT_ID, FACEBOOK_CLIENT_SECRET, GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT, BETATESTER_KEY and FRONTEND_URL.

Admin

The settings page sociallogin (permission golem15.sociallogin.access_settings, category Users) has a tab per built-in provider with the client id, the client secret and, for Microsoft, the tenant. The values live in the singleton golem15_sociallogin_settings (migration 202610200001_create_golem15_sociallogin_settings); a non-empty value overrides the configuration on the next request, without a restart. Client secrets are encrypted columns and write-only password fields: the page shows only whether a secret is stored, comes from the configuration or is empty, and secrets are never logged. The tenant must be common, organizations, consumers, a tenant ID or a domain (letters, digits, dots and hyphens); anything else is a validation error on the field.

API reference

Package sociallogin:

  • PluginID, Plugin, Config (alias of classes.Config), LoadConfig(app *backpack.App) (Config, error), SettingsCode, PermissionAccessSettings.

Package models: Settings (Credentials(provider), SecretFallbacks(), Rules(), BeforeValidate(tx)), LoadSettings(ctx, db) (*Settings, error), Providers, ConfigSecretKey(provider), LangPrefix.

Package classes:

  • RegisterBuiltins(reg *Registry) error (google, facebook, github, microsoft); DefaultTenant.
  • Provider, Profile (TenantID is the Entra tenant of a Microsoft sign-in, empty elsewhere), ProviderConfig, Factory, Registry, NewRegistry() *Registry, (*Registry).Register(name, label string, f Factory) error, Names() []string, Label(name string) (string, bool), Has(name string) bool, Build(name string, cfg ProviderConfig) (Provider, error), RegistryFromApp(app *backpack.App) (*Registry, bool).
  • ReservedNames; errors ErrReservedName, ErrInvalidName, ErrDuplicateProvider, ErrUnknownProvider, ErrCodeExpired.
  • Config, LoadConfig; ResolveCredentials(ctx, app, name) (ProviderConfig, bool, error), CallbackRoute(name string) string.
  • State, Consent, SealState, OpenState, ClearStateCookie, StateCookieName, StateCookieSecure, StateTTL, MaxStateCookieBytes, ErrInvalidState.
  • HostSet, NewHostSet, NormalizeFrontendCallback, NormalizeReturnTo, ResolveCallback, WithQuery.
  • NewCode() (string, error), CompletionPayload (with Challenge, JSON challenge, omitted when empty), PutCompletion, PullCompletion, CompletionTTL; PendingPayload (and its Profile(); TenantID carries the tenant, JSON tenant_id, omitted when empty), PutPending, GetPending, PullPending, PendingTTL; PutLinkTicket, PullLinkTicket, LinkTicketTTL.
  • SignedInEvent, SignedInEventName (see Events); OnTwoFactorLogin(app) (the login-event listener that fires a held-back sign-in's SignedInEvent; Boot registers it), ChallengedSignInKeyPrefix, ChallengedSignInTTL.
  • ActionLogin, ActionRegister, ActionLink; Outcome (with Challenge, the login gate's body), OutcomeLogin, OutcomePending, ReasonNoEmail, ReasonUnverifiedMatch, HandleCallback, CompletePending, ErrPendingConsumed, CreateUser, CheckBetaKey, PasswordBootstrapSource, ValidationError, IsValidation, FlowError, Message, RegisterMessage, ClientIP.

Adding a provider from another plugin (which requires golem15.sociallogin):

func (p *Plugin) Register(app *backpack.App) error {
	reg, _ := classes.RegistryFromApp(app)
	return reg.Register("acme", "Acme ID", func(cfg classes.ProviderConfig) (classes.Provider, error) {
		return newAcmeProvider(cfg), nil
	})
}

Security notes

  • The state cookie binds the flow to the browser (login CSRF): an empty, missing, tampered, expired (600 s) or foreign state is refused, and the cookie is cleared on every outcome.
  • Microsoft tenant ID: tid is read from the id_token of the client-authenticated back-channel code exchange (TLS, straight from the token endpoint; OpenID Connect Core 3.1.3.7), so its signature is not checked. It is kept only when the id_token's aud equals the client ID and tid is a canonical GUID; otherwise TenantID is empty and the sign-in proceeds without it. When assigning organisations by tenant, match TenantID together with the identity's provider microsoft: another provider (an application's own) could report any value. The id_token is never logged.
  • nOAuth: Microsoft (and Facebook) emails never link to an existing account; such sign-ins go to the pending screen, whose completion refuses an unverified match.
  • Pre-account takeover: a verified sign-in links onto an existing account only when the account's owner proved the address, recorded by golem15.user as users.email_verified_at (a mailed activation code or a password set through the mailed reset code; unlike the PHP component). Two variants are covered. An account created from an email the provider did not verify has no proof. An account registered with a password but never proved has none either: with activate_mode: auto (the default) /register activates an account with a self-set password and no mailbox check, and an administrator's create or Activate action does not check the mailbox, so a self-set password is not proof. Both go to the pending screen, and the owner links from the settings. Otherwise whoever created the account with someone else's address would keep access once the owner signs in with Google or GitHub.
  • Codes and link tickets are 64 characters from crypto/rand, sealed in the cache and consumed once. With more than one application instance, use the Redis cache driver (Redis 6.2 or newer for GETDEL); the memory driver keeps codes on the instance that issued them.
  • Deactivation is reversible by the account's owner (a social sign-in restores the account, as a password login does), while a ban is the lock: it is checked before any restore or identity write, so a banned account is never restored, linked or signed in. golem15.user ends the earlier sessions and personal API tokens of a deactivated or banned user.
  • Provider access and refresh tokens are stored encrypted on the identity row; provider error bodies, tokens, secrets, codes and tickets are never logged.

Dependencies

  • golem15.user (git.golem15.com/golem15/sm-user-plugin v0.1.12 or later, the version with the login gate registry, CheckLoginGates and LoginSourceSocial): users, identities, tokens, the user payload, the provider list endpoint, the login gates, and users.email_verified_at, the owner's proof of the address that account matching reads.
  • github.com/markbates/goth v1.82.0: the core package and the google, facebook, github and azureadv2 provider packages only (never its session helper package, so gorilla/sessions is not linked); only classes/providers_goth.go imports it.
  • golang.org/x/oauth2 (token exchange errors, and the Microsoft code exchange that keeps the id_token).
  • SummerCMS v0.5.0 or newer (git.golem15.com/golem15/summercms; cooler.Cache.Pull consumes the one-time codes), modules backpack, bouncer, cabana, cooler, lagoon, pact, party, phrasebook, surf, wire.

Testing

go vet ./...
go test -short ./...          # no Docker
go test ./...                 # also the testcontainers Postgres smoke tests

The smoke tests: TestTracerSmoke drives a returning user's sign-in through a fake provider registered in the plugin's registry; TestFlowSmoke covers email matches, account creation at the callback and on the pending screen, and the token cookie; TestLinkSmoke covers the link ticket, bearer linking and the start-request errors; TestSocialGateSmoke adds a fake login gate to golem15.user's registry and covers the unchanged sign-in without a challenge, the two_factor_required body from oauth-complete and oauth-register-complete with no token and the deactivated account left deactivated, the refusal redirect with two_factor_unavailable, a gate error failing closed and an ungated link; TestSettingsOverrideSmoke covers the admin settings override; TestGothProvidersSmoke drives the four goth wrappers against fake provider APIs. TestSocialGate (Postgres) pins the gate across every sign-in kind (an existing identity, a verified email match, a new account's registration completion): the attempt it sees, a challenge (status 200 or 0) passed through byte for byte with no session cookie even in token-cookie mode and no SignedInEvent, refusals redirecting with two_factor_unavailable, a gate error failing closed, and a link never consulting the gate. TestChallengedSignInFiresOnCompletion (Postgres) pins the held-back SignedInEvent: nothing at the challenged callback, the event with the sign-in's fields once golem15.user's login event of source two_factor follows a completed challenge, and nothing for an open challenge, another source, another user or a repeated event.

The unit tests, one per decision. Without Docker (-short): TestRegistry (names, reserved names, order, Build), TestNormalizeFrontendCallback and TestNormalizeReturnTo (the callback and return_to tables), TestCodes (64-character codes, sealed cache values, TTLs, single use), TestEmailVerified (per-provider email-verified rules), TestGothProviders (authorization URLs, sign-ins, the Microsoft tenant from the id_token and its refusals: no id_token, malformed, foreign aud, non-GUID tid; expired codes without response bodies, timeouts, no request outside the provider's hosts against fake APIs) and TestErrorMessages (every message in en and pl, the PHP texts byte for byte). On Postgres: TestStateCookie (sealing, refusals, attributes, cleared on every callback outcome), TestRoutes, TestRouteMiddleware (throttles from the route table, the 21st request answers 429), TestProvidersList, TestMatching, TestNOAuth (a Microsoft mail matching an existing user never links, in any tenant), TestSoftDeleted, TestInactiveAndBanned (including a banned and deactivated account, refused on every path, never restored and never mailed), TestRegistrationGates, TestConsent, TestBetaGate, TestIdentityTokens, TestLink, TestLinkTicket, TestOAuthComplete, TestTokenCookieMode, TestRegisterComplete (including 16 concurrent submissions of one code: one 200, fifteen 410), TestPreAccountTakeover (a verified sign-in never links onto a password-less account), TestTenantProfileData (profile_data.tenant_id only with a tenant, kept through a pending sign-in), TestSignedInEvent (one event per login, register, link, pending completion and restoring login with every field; failing sign-in, register and created listeners are logged and fail nothing; a listener's write reaches the payload) and TestSettings (overrides, write-only secrets, no secret in any log line, the PHP environment names).

The PHP social sign-in suite is mapped case by case in testdata/PHP_METHOD_MAP.md (38 methods of SocialAuthGateTest, OAuthLinkCookieTest, OAuthPendingRegistrationTakeoverTest, OAuthPasswordBootstrapTest and the reference site's ProfileOAuthLinkTest; the list is testdata/php_methods.txt). TestPHPMethodMap (no Docker) fails on a missing, unknown or extra method, a missing reason and a Go test or subtest that does not exist; rows that name user plugin tests are checked against the checkout in USER_PLUGIN (the sibling checkout by default), and the list is compared with the PHP files when PHASE195_PHP_USER and PHASE195_PHP_PROFILE (or the default paths) exist. The ports run on Postgres, one subtest per PHP method: TestPHPSocialAuthGate, TestPHPOAuthLinkCookie, TestPHPPendingRegistrationTakeover, TestPHPPasswordBootstrap and TestPHPProfileOAuthLink.

Tests never call a real provider: providers are fakes registered in the registry, and the goth wrappers get a fake http.RoundTripper through ProviderConfig.HTTPClient. The harness trusts the loopback proxy, so a test picks its client address with X-Forwarded-For.

Versions

VersionFrameworkRequiresReleased
v0.1.6v0.6.0golem15.user v0.1.122026-10-30