Class HttpAuthenticationContext
Represents an authentication context containing information for performing authentication.
public class HttpAuthenticationContext
- Inheritance
-
HttpAuthenticationContext
- Inherited Members
Constructors
HttpAuthenticationContext(HttpActionContext, IPrincipal)
Initializes a new instance of the HttpAuthenticationContext class.
public HttpAuthenticationContext(HttpActionContext actionContext, IPrincipal principal)
Parameters
actionContext
HttpActionContextThe action context.
principal
IPrincipalThe current principal.
Properties
ActionContext
Gets the action context.
public HttpActionContext ActionContext { get; }
Property Value
- HttpActionContext
The action context.
ErrorResult
Gets or sets an action result that will produce an error response (if authentication failed; otherwise, null).
public IHttpActionResult ErrorResult { get; set; }
Property Value
- IHttpActionResult
An action result that will produce an error response.
Principal
Gets or sets the authenticated principal.
public IPrincipal Principal { get; set; }
Property Value
- IPrincipal
The authenticated principal.
Request
Gets the request message.
public HttpRequestMessage Request { get; }
Property Value
- HttpRequestMessage
The request message.