type
AuthContext
Request and actor state supplied to an authentication rule or hook.
Properties
| Property | Type | Description |
|---|---|---|
Context | context.Context | Carries request cancellation and deadlines. |
Operation | AuthOperation | Identifies the authentication lifecycle boundary. |
CollectionID | schema.StableID | Identifies the target auth collection. |
User | *store.Document | The current user when one has been resolved. |
Identity | string | The normalized login identity when applicable. |
IPAddress | string | The resolved direct or trusted-forwarded client address. |
UserAgent | string | The request user-agent metadata. |
Local | *LocalAPI | Enters ordinary access-controlled content operations. |
How it works
Passwords, bearer tokens, reset tokens, and API keys are intentionally never included.
Full signature
type AuthContext struct {
Context context.Context
Operation AuthOperation
CollectionID schema.StableID
User *store.Document
Identity string
IPAddress string
UserAgent string
Local *LocalAPI
}