• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class AuthFilterContext

Inheritance
System.Object
AuthFilterContext
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public class AuthFilterContext : object

Constructors

| Improve this Doc View Source

AuthFilterContext(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 Source

ActionContext

Declaration
public HttpActionContext ActionContext { get; }
Property Value
Type Description
HttpActionContext
| Improve this Doc View Source

AuthFailureMessage

Declaration
public string AuthFailureMessage { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

HandleUnauthorizedRequest()

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()

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS