* Represents the result of authenticating a request. * An `AuthenticationResult` can represent one of the * following states: * * 1. The request was successfully authenticated: * `principal` is set. * 2. The request was not authenticated and a new * challenge is issued: `unauthorized` is set. * 3. The request was not authenticated but no new * challenge is issued: `forbidden` is
| 89 | * Setting more than one or not setting any is an error. |
| 90 | */ |
| 91 | struct AuthenticationResult |
| 92 | { |
| 93 | Option<Principal> principal; |
| 94 | Option<Unauthorized> unauthorized; |
| 95 | Option<Forbidden> forbidden; |
| 96 | }; |
| 97 | |
| 98 | |
| 99 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected