type
AuthStrategyResult
Result of one custom authentication strategy.
Properties
| Property | Type | Description |
|---|---|---|
Authenticated | bool | Reports whether this strategy recognized and authenticated the request. |
UserID | string | Identifies the matched user in the strategy’s auth collection. |
How it works
An authenticated result must supply UserID. A false result means “not applicable,” allowing the next strategy to run.
Full signature
type AuthStrategyResult struct {
Authenticated bool
UserID string
}