type

AuthContext

type AuthContext struct { Context context.Context Operation AuthOperation CollectionID schema.StableID User *store.Document Identity string IPAddress string UserAgent string Local *LocalAPI }

Request and actor state supplied to an authentication rule or hook.

Source core/auth_contract.go:27

Contextcontext.Context
Carries request cancellation and deadlines.
OperationAuthOperation
Identifies the authentication lifecycle boundary.
CollectionIDschema.StableID
Identifies the target auth collection.
User*store.Document
The current user when one has been resolved.
Identitystring
The normalized login identity when applicable.
IPAddressstring
The resolved direct or trusted-forwarded client address.
UserAgentstring
The request user-agent metadata.
Local*LocalAPI
Enters ordinary access-controlled content operations.

Passwords, bearer tokens, reset tokens, and API keys are intentionally never included.