Class DataWebAuthorizeAttribute.DataWebAuthorizeFilter
Represents an implementation of the IAuthorizationFilter interface.
Inherited Members
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public class DataWebAuthorizeAttribute.DataWebAuthorizeFilter : IAuthorizationFilter, IFilterMetadata
Remarks
Initializes a new instance of the DataWebAuthorizeAttribute.DataWebAuthorizeFilter class with the specified response mode.
Constructors
DataWebAuthorizeFilter(ResponseMode)
Represents an implementation of the IAuthorizationFilter interface.
Declaration
public DataWebAuthorizeFilter(DataWebAuthorizeAttribute.ResponseMode responseMode)
Parameters
Type | Name | Description |
---|---|---|
DataWebAuthorizeAttribute.ResponseMode | responseMode | The DataWebAuthorizeAttribute.ResponseMode to use when the user is not authorized. |
Remarks
Initializes a new instance of the DataWebAuthorizeAttribute.DataWebAuthorizeFilter class with the specified response mode.
Methods
OnAuthorization(AuthorizationFilterContext)
Called when a user attempts to access a web API endpoint.
Declaration
public void OnAuthorization(AuthorizationFilterContext context)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationFilterContext | context | The AuthorizationFilterContext that represents the context for the current request. |