Class AuthFilterBase
Inheritance
System.Object
AuthFilterBase
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public abstract class AuthFilterBase : IAuthorizationFilter
Properties
| Improve this Doc View SourceAllowMultiple
Gets a value indicating whether more than one instance of the indicated attribute can be specified for a single program element.
Declaration
public abstract bool AllowMultiple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceIsAuthorized(AuthFilterContext)
Tests if the request passes the authorization requirements.
Declaration
public abstract bool IsAuthorized(AuthFilterContext context)
Parameters
Type | Name | Description |
---|---|---|
AuthFilterContext | context | The auth filter context. |
Returns
Type | Description |
---|---|
System.Boolean | True when authorization is succesful. |
OnAuthorization(HttpActionContext)
Co-ordinates check of authorization and handles Auth failure. Should rarely be overridden.
Declaration
protected virtual void OnAuthorization(HttpActionContext actionContext)
Parameters
Type | Name | Description |
---|---|---|
HttpActionContext | actionContext |