MCPcopy Create free account
hub / github.com/3rdparty/libprocess / AuthenticationResult

Class AuthenticationResult

include/process/authenticator.hpp:91–96  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

89 * Setting more than one or not setting any is an error.
90 */
91struct AuthenticationResult
92{
93 Option<Principal> principal;
94 Option<Unauthorized> unauthorized;
95 Option<Forbidden> forbidden;
96};
97
98
99/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected