Class AuthenticationContext
Represents an authentication context containing information for performing authentication.
public class AuthenticationContext : ControllerContext
- Inheritance
-
AuthenticationContext
- Inherited Members
Constructors
AuthenticationContext()
Initializes a new instance of the AuthenticationContext class.
public AuthenticationContext()
AuthenticationContext(ControllerContext, ActionDescriptor, IPrincipal)
public AuthenticationContext(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IPrincipal principal)
Parameters
controllerContextControllerContextactionDescriptorActionDescriptorprincipalIPrincipal
Properties
ActionDescriptor
Gets or sets the action descriptor.
public ActionDescriptor ActionDescriptor { get; set; }
Property Value
- ActionDescriptor
The action methods associated with the authentication
Principal
Gets or sets the currently authenticated principal.
public IPrincipal Principal { get; set; }
Property Value
- IPrincipal
The security credentials for the authentication.
Result
Gets or sets the error result, which indicates that authentication was attempted and failed.
public ActionResult Result { get; set; }
Property Value
- ActionResult
The authentication result.