type
AuthAccess
Authorization rules for authentication operations outside document CRUD.
Properties
| Property | Type | Description |
|---|---|---|
Login | AuthAccessRule | Controls password and external-strategy login. |
PasswordReset | AuthAccessRule | Controls forgot-password and password-reset operations. |
Verification | AuthAccessRule | Controls email-verification operations. |
APIKey | AuthAccessRule | Controls API-key creation and revocation. |
Session | AuthAccessRule | Controls session listing and revocation operations. |
How it works
A nil rule allows its operation. These rules complement collection CRUD access; they do not replace it.
Full signature
type AuthAccess struct {
Login AuthAccessRule
PasswordReset AuthAccessRule
Verification AuthAccessRule
APIKey AuthAccessRule
Session AuthAccessRule
}