Method Authenticated
- Namespace
- MailFathom.Infrastructure.Security.ApiKeys
- Assembly
- MailFathom.Infrastructure.dll
Authenticated(AdmittedUserCredential)
Creates a successful result naming what the request was admitted as.
public static UserApiKeyAuthenticationResult Authenticated(AdmittedUserCredential admitted)
Parameters
admittedAdmittedUserCredentialThe credential that matched, the user it names, and what it grants.
Returns
- UserApiKeyAuthenticationResult
The successful result.
Exceptions
- ArgumentNullException
Thrown when
admittedis null.