oauth

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MPL-2.0 Imports: 31 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Optional OAuth authorization — Issue #125 preview

Status: experimental Pre-release; non-production product integration only. This independent Go module can be pinned by a product for development/staging acceptance after a reviewed Pre-release publication. Pre-release source availability does not approve public OAuth/OIDC interoperability, a stable API, hosted identity-provider operation or production activation. The adopting product owns users, Session/Permit/ClientLookup, safe metadata enrollment, consent UI, HTTPS ingress, credential custody, lifecycle and rollback. Its author cannot independently approve a high-assurance security review. See ADR-0007 and Issue #125.

For an opted-in test/staging consumer, pin the exact published github.com/AChWorks/achrix/oauth@v0.1.0 Go module after verifying the GitHub release's Pre-release status, tag/source SHA, signed provenance, SBOM and compatible Core/Identity/Bridge/Audit dependencies. The product must still implement and validate its real integration; go get alone is not an activated issuer. This version does not claim dynamic CIMD, DCR or OIDC.

The optional AChrix component owns authorization mechanics and its separate PostgreSQL oauth schema. Multiple explicitly configured issuers may share this schema: pending sessions are unique per (issuer, resource, session binding), and Disconnect, token revocation and cleanup are issuer/resource-scoped. The schema migration ledger and native backup/restore cover all issuer rows; operators must protect and restore the shared state as one consistent unit. There is no automatic discovery, routing or token fallback between issuers. It does not own product users, their passwords, interactive sessions, business policy, resource or site authorization, or the deployment. It does not import Identity, Bridge or Core into production code, and never starts a hosted identity service. Its private adapter imports pinned github.com/zitadel/oidc/v3 v3.51.17 only for supported OAuth protocol validation; it does not enable that library's full OIDC Provider, ID-token issuance, default routes or permissive CORS policy. The consumer proof uses these products only in its Go test imports, together with the maintained golang.org/x/oauth2 client to exercise a real code exchange.

Currently implemented and tested first-profile paths

  • RFC 8414 issuer metadata; pre-enrolled public or client_secret_basic confidential clients; single HTTPS issuer and sole configured RFC 8707 resource; Authorization Code plus mandatory PKCE S256 and exact registered redirect URI. A pre-enrolled public URL client ID (e.g. the operator-approved https://chatgpt.com/oauth/client.json) may be used directly without a staging alias, but only if the product has already verified and enrolled its canonical metadata document and precise callback. This is the pre-registration mode of the CIMD Internet-Draft, not dynamic discovery.
  • Product-attested active Identity session and one-use, expiry-bounded consent transaction with independent server-side CSRF and strict POST Origin checking. Product-provided RenderConsent displays the consent UI in its own language, design and accessibility system. AChrix never renders its own HTML form. A new transaction for the same authenticated session replaces its prior pending transaction, bounding consent state per browser session. An authorization result includes the RFC 9207 iss and echoes the client's distinct state without treating it as server-side CSRF.
  • PostgreSQL atomic one-use code redemption; opaque SHA-256-at-rest access and refresh tokens; client, user, issuer, resource and consent-scope ceilings. Access expires after ten minutes; refresh has an absolute fourteen-day expiry. A reused refresh token revokes its entire grant family.
  • Current product identity, client enablement and per-request rights via the caller's mandatory Permit callback, not a snapshot of account permissions. Explicit Disconnect and authenticated RFC 7009 token revocation operate separately from product login/session logout. Logout must never implicitly revoke already issued grants or tokens; a logged-out/rotated product session cannot continue an unfinished consent transaction.
  • Explicit migration with immutable checksum ledger, manual expiry cleanup and 30-day orphan-grant reconciliation retention, limited concurrent HTTP operations and body sizes. Construction starts no goroutine, network listener or database worker. Each HTTP request has a random non-secret X-Request-ID reflected through oauth.RequestID(ctx) into protected diagnostics. Operators must explicitly schedule Prune; no background maintenance is auto-started. All long-lived diagnostics, database backups, privilege controls, TLS ingress and secrets belong to the product/operator.

There is no OIDC, ID token, JWT/JWKS, userinfo, automatic/unregistered CIMD client discovery, DCR, dynamic client registration, private_key_jwt, automatic consent, central login or mandatory hosted IdP. Only explicitly pre-enrolled URL identifiers are supported; the issuer never fetches a URL supplied by an OAuth request. Local product authentication remains independent. This implementation deliberately does not claim production protocol compliance or full real-world AI-client onboarding from compilation, metadata or a fixture.

Concrete protocol/engine responsibility map (candidate, not a public contract)

Operation ZITADEL v3.51.17 is authoritative for AChrix/product remains responsible for
Authorization request op.ValidateAuthRequestClient: registered callback, response type, client scope eligibility, code challenge method Exact RFC 8707 resource, mandatory S256 (SDK also permits plain), ignore unrecognized authorization parameters (RFC 6749 §3.1), reject duplicate supported parameters and unsupported OIDC scopes, current Identity session/Permit, product consent UI and one-use CSRF
Client authentication SDK request parsing and Code/Refresh validators, RFC 6749 Basic decoding and AuthorizeClientIDSecret with live ClientLookup and AChrix-supplied constant-time digest check Restrict methods to the advertised Basic-or-none profile: reject credential-in-form, public Basic, confidential missing Basic and mixed identity; apply immutable registration ceiling
Code exchange op.ParseAccessTokenRequest + op.ValidateAccessTokenRequest: client, stored code, redirect and S256 verification once Short-lived opaque code minting at consent; inside a PostgreSQL row lock, compare the already validated code snapshot against the durable record, recheck live Permit and atomically consume/issue
Refresh op.ParseRefreshTokenRequest + op.ValidateRefreshTokenRequest: registered client and scopes Original issuer/resource/grant/user binding; PostgreSQL row locks, replay-family revocation, absolute lifetime, live rights and hashed opaque token rotation
Revocation op.ParseTokenRevocationRequest: authentication and form decoding RFC 7009 undisclosing response, exact issuer/resource/client grant update and explicit user-owned Disconnect
Discovery, transport, tokens No full provider routes or ID token/JWKS/CORS behavior enabled Exact RFC 8414/9207/8707/9728 contract; own opaque access-token verification and ten-minute expiry, HTTP bounded ingress and protected diagnostics

ZITADEL's op.CreateTokenResponse unconditionally enters OIDC ID-token creation, so neither its full OIDC provider nor token-response helper is safe for this explicitly OAuth-only, opaque-token profile. The SDK validators currently require op.Exchanger/op.Storage; the private adapter implements the interface and makes all unsupported signing/provider methods fail closed. They are not product APIs or a second runtime-selectable engine.

This is deliberately one protocol validation authority and one AChrix-owned durable grant/token state machine, not two competing client/PKCE engines. Whether the resulting bounded library integration sufficiently meets the Owner's Option B architecture must still be determined by the independent security/architecture review. It does not imply approval of a validator-only deviation, public OAuth compatibility or production deployment.

The adapter is pinned to one upstream version. A future SDK upgrade must re-evaluate Parse*Request, Validate*Request, client-method restrictions, OAuth Basic decoding and the required interface stubs against the executable contract suite. Persistent issuer/resource/grant semantics are AChrix-owned; a different engine may require deliberate token expiry, re-consent and client re-enrollment, not seamless token migration. Do not create a generic engine registry without evidence of an actual second supported implementation.

Private proof composition

A product can create an explicitly owned connection pool and apply the schema with oauth.Migrate(ctx, pool), then compose oauth.New(oauth.Config{...}). The config must provide an exact canonical HTTPS issuer and resource, bounded pre-enrolled clients, a mandatory live ClientLookup callback, a trusted product Session callback, a current Permit callback, a product-owned RenderConsent callback and a protected Diagnostic sink. The caller owns pool.Close() and schema backup.

  • Session must authenticate one current product Identity cookie/token using the actual Identity Service (Authenticate); its binding is the hash of the current opaque session credential, not the account ID, client state or OAuth token. Never trust a browser-supplied principal or Host.
  • Permit must check live user enablement, connection scope, site/resource and product Application authorization on every authorization, exchange, refresh and access verification. Explicit policy denial should return oauth.ErrInvalidGrant; unavailable dependencies should return oauth.ErrUnavailable and fail closed. The initially enrolled client set is immutable: the live ClientLookup callback can only reduce active privileges and cannot silently add new clients, callback URLs or scopes. Changing the initial registration ceiling requires creating a new configured Server; runtime disable/scope reductions are checked on every request. It must not return sensitive causes into an HTTP response. Product access rights remain narrower than OAuth grants even when the token is cryptographically valid.
  • Pre-enrolled CIMD URL clients must use a canonical HTTPS Client.ID naming a metadata document on a publicly named DNS host, without userinfo, query, fragment, port or encoded/dot-segment path. Only public-client none authentication is implemented for this subset. The trusted product/operator must obtain the document over validated HTTPS before enrollment and verify its exact client_id, declared redirect_uris, public authentication method (none), response/grant compatibility and current owner approval; configure only the exact checked callback(s) and allowed scope ceiling. It must periodically revalidate this external metadata out of band and disable/re-enroll the client on incompatible changes. The issuer will not dynamically fetch metadata, follow redirects, crawl arbitrary URLs, trust metadata from the OAuth request, or grant privileges beyond the immutable enrollment ceiling. When at least one such client is enrolled, issuer metadata advertises client_id_metadata_document_supported: true; it means trusted pre-registration only, not open CIMD enrollment. This limited mode intentionally avoids request-driven SSRF and DNS rebinding. See CIMD draft §9.2. Section 9.2 explicitly permits operator pre-registration without request-time retrieval; the issuer's discovery flag signals this restricted URL-ID capability, not admission of arbitrary metadata URLs. The issuer omits the flag when no enabled URL client is configured. A real HTTPS/PostgreSQL regression checks discovery, a trusted-document compatibility decision, rejection of unregistered URL IDs, and the registered URL's authorization-code/refresh flow. It does not prove automatic CIMD enrollment or establish a stable public contract for all ChatGPT/Claude configurations.
  • The consumer implements Bridge Verify through issuer.VerifyAccess(ctx, exactResourceURL, bearer) and maps an invalid grant to bridge.ErrInvalidCredential. It retains Bridge Admit and operation Gate, and invokes the normal typed Application service with the verified user. A token's client_id is not the product principal.
  • The Authorization GET response sets Referrer-Policy: origin for the same-origin HTML consent form: modern browsers otherwise set the POST Origin header to null under no-referrer, causing the strict CSRF Origin check to reject genuine consent. origin discloses no request path/query, PKCE state, or code; Token and other endpoints retain no-referrer. Product renderers must not override this policy to no-referrer unless they implement a separately reviewed, same-origin fetch-based consent submission with a valid Origin. The consent GET also scopes CSP form-action to 'self' plus only the current client's exact, pre-registered HTTPS callback origin. Chromium checks the full form POST redirect chain, including the necessary OAuth 303 to that callback; retaining 'self' alone would prevent user consent from reaching the client. The product must preserve this constrained CSP or supply a reviewed equivalent; do not open arbitrary form destinations, remove CSRF/Origin checks or use 307.
  • RenderConsent receives a bounded ConsentView (the authenticated user, client, resource, scope, exact redirect, form action, CSRF and short-lived transaction). It must safely HTML-escape every untrusted display value, localize/accessibly render Approve/Deny without automatic grant, POST transaction/csrf/decision to FormAction on the same HTTPS issuer origin, and avoid caching/logging the opaque CSRF values. Rendering failures must fail closed. The default issuer deliberately has no built-in HTML, login or branding; the HTML fixture lives only in _test.go.
  • The issuer http.Handler must be explicitly mounted on a trusted HTTPS origin. There is no reverse-proxy trust of arbitrary Forwarded or X-Forwarded-* headers. The product-owned http.Server or ingress must also bound header reading (ReadHeaderTimeout, MaxHeaderBytes) and connection resources; the handler cannot impose those limits before it is invoked. For POST bodies, the handler sets a five-second network read deadline through http.ResponseController.SetReadDeadline; middleware wrapping its ResponseWriter must expose Unwrap() or the same deadline method. If the deadline cannot be enforced, POST requests fail closed with HTTP 503 rather than consuming an unbounded slow body. The PostgreSQL role needs restricted access to the owned schema. Network and database availability are mandatory for protected operations.

The end-to-end regression in identity_bridge_test.go exercises two real PostgreSQL-backed Identity users and the real Audit and Bridge modules. A maintained Go OAuth2 client obtains a PKCE code over private HTTPS, exchanges it for opaque tokens and invokes the existing Identity.Service.Account operation through Bridge. It tests current permissions, logout isolation, explicit revocation and account separation. This is a protocol/consumer integration proof, not a working ChatGPT/Claude/browser-login product onboarding implementation. A product still needs an independently reviewed interactive login/continuation and consent UI, including cross-site navigation and SameSite cookie behavior.

Operator-managed CIMD metadata compatibility and drift

Products enrolling pre-approved URL clients may call oauth.ValidatePreEnrolledClientMetadata(client, trustedJSON) on the operator-controlled intake/revalidation path, before constructing the configured Server. The input is an already-approved oauth.Client and at most 64 KiB of UTF-8 JSON from that client's exact metadata-document URL. The helper performs no network requests, no DNS lookup or redirects, no registration, no durable writes and no operator approval. It returns oauth.ErrConfiguration (with a safe operator-oriented explanation) when the document is incompatible. It is not a substitute for oauth.New client configuration validation or the product's authenticated operator approval.

The compatibility check requires the exact client_id, every operator enrolled callback in the document's declared redirect set, and the first-profile authorization-code capabilities. Extra published callbacks never expand the server's immutable approved callback ceiling. For public URL clients it requires none to be an available token-auth method; a legacy private_key_jwt preference is compatible when the plural supported-methods array also offers none. When both method properties are absent, the CIMD-specific default is none, not client_secret_basic. Other well-formed unselected authentication methods are not enabled by this helper; shared-secret methods, unexamined embedded JWKS, software statements, malformed, duplicate or oversized JSON are refused by this intentionally narrow check. Other metadata fields, such as display names, cannot grant product permissions. This is not a general CIMD conformance verifier or dynamic registration.

The owning product/operator must additionally:

  1. Authorize the exact client URL and account/registration approval out of band. Fetch over validated HTTPS with a bounded size and time, strict TLS trust, no unsafe redirect, no private/loopback/link-local/resolved address access or DNS-rebinding exposure; never fetch an unknown URL during an OAuth request. Confirm the document source, ownership and any unsupported metadata fields before deciding the scope/callback ceiling.
  2. Keep the approved callback(s), selected method, scoped privileges, operator/approval record, observed metadata fingerprint/time, and a deliberate revalidation policy in product-owned durable state. AChrix does not introduce a second registration database.
  3. Revalidate independently of authorization requests and evaluate both compatibility and the product's previously approved metadata baseline. On incompatible or unapproved change, or when source trust/revalidation policy fails, make authoritative ClientLookup reject/disable the client persistently. A later healthy fetch does not silently re-enable it. Only an explicit new approval may restore it. Existing access/refresh grants are subject to current client state on every protected use; product logout must not independently revoke them. If policy requires revocation, use explicit Disconnect/revocation rather than treating a failed fetch as a user logout.
  4. Preserve protected evidence of the decision and failure cause without leaking response bodies, secrets, OAuth codes or tokens into public responses/logs. Plan enrollment recovery, metadata drift response and client credential lifecycle before any public release.

A unit regression exercises this contract with a product-owned ClientLookup: validated metadata admits the client; a removed callback disables it; restoring metadata alone does not revive it without an explicit product approval. A real product intake workflow and safe network retrieval remain separately owned release acceptance, not work performed by this helper.

Development verification

Production migration accepts UTF8 PostgreSQL 18.6 or later patch releases within major 18; newer majors require separate qualification, and older 18.x releases are rejected. Production does not lock an exact minor patch number. CI remains reproducibly pinned to 18.6. Use an isolated PostgreSQL 18.6 database named achrix_oauth_test, configured as ACHRIX_OAUTH_TEST_DSN. Set ACHRIX_OAUTH_TEST_ROOT to the absolute task-owned private (mode 0700) cluster directory containing its mode 0700 socket subdirectory; only this root's Unix socket and the exact test database name/version may be used for destructive fixtures. Running without ACHRIX_OAUTH_TEST_DSN skips database tests: a green empty run does not prove OAuth behavior. The full repository validation supplies this database and independently tests the same module, schema migration, controlled native dump/restore and the existing pinned Notes consumer.

Run the focused package tests with:

go test -C oauth -race -count=1 -timeout=90s ./...

modules.json marks this module as an explicitly opted-in preview: an official signed source Pre-release is permitted only for non-production product integration. Public production issuer activation is not permitted by this preview status. The final protocol contract, retained-state retention/privacy policy, client lifecycle, AS ceremony logout, user-facing UI and first-class URL-client onboarding still require independent evidence and author-separated HIGH_ASSURANCE review. Actual native-client OAuth/MCP onboarding and tool acceptance evidence is bound to its exact disposable test issuer, build and date in Issue #125; it cannot establish a stable public protocol contract or production readiness merely because a synthetic or native QA fixture passes.

Unfinished acceptance boundaries

A proposal is not done until (1) independent review closes all security/correctness findings, (2) supported PostgreSQL 18 migration and recovery, real browser/authenticated client onboarding and genuine MCP/HTTP consumer behavior are verified, (3) the public protocol contract and selected engine adapter receive separate acceptance (the concrete v3.51.17 library selection is already Owner-approved), and (4) release/deployment gates are separately authorized. Do not turn an experimental in-process issuer into a public authorization endpoint simply because tests pass.

Documentation

Overview

SPDX-License-Identifier: MPL-2.0

SPDX-License-Identifier: MPL-2.0

SPDX-License-Identifier: MPL-2.0 Package oauth provides an experimental, optional in-process authorization server. This preview API may be consumed by an opt-in product for development and staging only; it is not approved for production. Products own users, sessions, policy, TLS, metadata enrollment and configuration.

SPDX-License-Identifier: MPL-2.0

SPDX-License-Identifier: MPL-2.0

SPDX-License-Identifier: MPL-2.0

SPDX-License-Identifier: MPL-2.0 Package-private ZITADEL protocol boundary. The product-facing contracts in this module deliberately do not expose OIDC provider, client or storage types.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfiguration = errors.New("oauth configuration invalid")
	ErrInvalidGrant  = errors.New("oauth grant invalid")
	ErrUnavailable   = errors.New("oauth state unavailable")
)

Functions

func Migrate

func Migrate(ctx context.Context, pool *pgxpool.Pool) error

Migrate explicitly installs a versioned transactional PostgreSQL schema. Concurrent migration attempts serialize; unknown versions or changed source hashes fail closed. Retained grants/revocations require product-wide backup.

func RequestID

func RequestID(ctx context.Context) string

RequestID lets a protected product diagnostic sink associate an operation with its public response without accepting untrusted correlation headers.

func SecretDigest

func SecretDigest(randomSecret string) [32]byte

SecretDigest is suitable only for a high-entropy, product-provisioned random client secret. It is deliberately not a password hashing function.

func ValidatePreEnrolledClientMetadata

func ValidatePreEnrolledClientMetadata(c Client, document []byte) error

ValidatePreEnrolledClientMetadata checks that a trusted, already retrieved CIMD JSON document is compatible with an operator-approved URL Client.

This performs no network, DNS, redirects, registration or approvals. It does not establish a client identity by itself and must never run as a response to unknown OAuth client_id values. Products own safe HTTPS retrieval, trustworthy review/approval, durable enrollment records and periodic revalidation. On drift, their ClientLookup must fail closed and remain disabled until a deliberate re-approval.

The bounded initial profile supports only public URL clients using "none" authentication. It tolerates the metadata's additional private_key_jwt preference when token_endpoint_auth_methods_supported also offers "none". Errors are safe operator diagnostics, never serialized to public OAuth clients.

Types

type Client

type Client struct {
	ID           string
	Name         string
	RedirectURIs []string
	Scopes       []string
	Confidential bool
	SecretDigest [32]byte
	Enabled      bool
}

Client is registered by trusted product configuration, not by a user request. A public client ID may be an operator-pre-enrolled canonical HTTPS metadata URL. This profile never fetches arbitrary request-supplied metadata. SecretDigest is SHA-256 of a randomly generated >= 32-byte client secret, provisioned out-of-band. Never configure a human-memorable secret.

type Config

type Config struct {
	Issuer   string
	Resource string
	Clients  []Client
	// ClientLookup must read currently-authoritative client state on every call.
	// Clients is only the product-approved registration ceiling; live state may
	// reduce but never silently expand this initial pre-enrolled profile.
	ClientLookup func(context.Context, string) (Client, error)
	Pool         *pgxpool.Pool
	Session      func(context.Context, *http.Request) (Session, error)
	// Permit checks current product rights for this subject/client/resource/scope.
	// Denial or unavailability must fail closed; HTTP does not expose its cause.
	Permit func(context.Context, Grant) error
	// RenderConsent is required, product-owned, and runs only after a
	// valid authenticated session/permission and fresh one-use consent
	// transaction exist. It must render on the issuer's same HTTPS origin.
	// No default Foundation-hosted login or HTML UX is provided.
	RenderConsent func(http.ResponseWriter, *http.Request, ConsentView)
	// Diagnostic must preserve protected errors and correlation elsewhere.
	Diagnostic func(context.Context, string, string, error)
	Now        func() time.Time
}

Config contains no global mutable state. The caller owns DB initialization, TLS, ingress, the consent UI and protected secrets. Callbacks must be safe for concurrent use.

type ConsentView

type ConsentView struct {
	Subject     string
	ClientID    string
	ClientName  string
	RedirectURI string
	Resource    string
	Scopes      []string
	FormAction  string
	Transaction string
	CSRF        string
	ExpiresAt   time.Time
}

ConsentView contains trusted product presentation inputs and opaque, short-lived one-use transaction values. Never log or persist Transaction or CSRF outside the issuer's protected in-flight consent response. The product must render an escaped, accessible same-origin POST form to FormAction with transaction, csrf and decision=allow|deny fields.

type Grant

type Grant struct {
	ID, Subject, ClientID, Issuer, Resource string
	Scopes                                  []string
	CreatedAt                               time.Time
}

Grant represents independently revocable, resource-bound user delegation. Scopes are a ceiling on transport authority; never product business rights.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is opt-in; construction has no network, DB connection or timer effects.

func New

func New(config Config) (*Server, error)

func (*Server) AuthorizePath

func (s *Server) AuthorizePath() string

func (*Server) Disconnect

func (s *Server) Disconnect(ctx context.Context, subject, grantID string) error

Disconnect is a deliberate product-owned, authenticated operation. Products must supply the actual user subject from their normal authorization boundary. It is independent of interactive-session logout.

func (*Server) MetadataPath

func (s *Server) MetadataPath() string

MetadataPath follows RFC 8414 issuer-path insertion.

func (*Server) Prune

func (s *Server) Prune(ctx context.Context) error

Prune removes expired one-use and token rows, then retains orphan grants for a 30-day reconciliation window after their last grant/revocation event. Active grant/token relationships are never deleted. Refresh lifetime is absolute (not sliding), so replay evidence remains until that expiry. Operators must call Prune on a bounded cadence; no background task starts.

func (*Server) RevokePath

func (s *Server) RevokePath() string

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) TokenPath

func (s *Server) TokenPath() string

func (*Server) VerifyAccess

func (s *Server) VerifyAccess(ctx context.Context, resource, access string) (Grant, time.Time, error)

VerifyAccess returns only a verified product subject/client/resource binding. Bridge must also run its own Admit/Gate and the ordinary product Service.

type Session

type Session struct {
	Subject string
	Binding [32]byte
}

Session is supplied by trusted product authentication only. Binding MUST be the SHA-256 digest of the current opaque browser session credential (not user ID). Identity.Web plus identity.CookieName can implement this without importing Identity into the issuer. A rotated/logged-out session cannot resume consent.

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

TokenResponse is a credential-bearing result; callers must not log it.

func (TokenResponse) GoString

func (t TokenResponse) GoString() string

func (TokenResponse) String

func (t TokenResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL