Class AuthFilterContext
Inheritance
System.Object
AuthFilterContext
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public class AuthFilterContext : object
Constructors
| Improve this Doc View SourceAuthFilterContext(HttpActionContext, String)
Initializes a new instance of the AuthFilterContext class.
Declaration
public AuthFilterContext(HttpActionContext actionContext, string authFailureMessage)
Parameters
Type | Name | Description |
---|---|---|
HttpActionContext | actionContext | The HTTP action context. |
System.String | authFailureMessage | The message to include in the response if there's an auth failure. |
Properties
| Improve this Doc View SourceActionContext
Declaration
public HttpActionContext ActionContext { get; }
Property Value
Type | Description |
---|---|
HttpActionContext |
AuthFailureMessage
Declaration
public string AuthFailureMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceHandleUnauthorizedRequest()
Processes requests that fail authorization. This default implementation creates a new response with the Unauthorized status code. Override this method to provide your own handling for unauthorized requests.
Declaration
public virtual void HandleUnauthorizedRequest()