Class DataWebAuthorizeAttribute
Represents an attribute that is used to restrict access to controllers and actions
requiring DataWeb authentication. Unauthenticated requests receive 401 Unauthorized;
authenticated users without the IsDataWeb flag also receive 401 Unauthorized
(consider using 403 Forbidden for semantic correctness in that case).
Inherited Members
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public sealed class DataWebAuthorizeAttribute : TypeFilterAttribute, IFilterFactory, IOrderedFilter, IFilterMetadata
Constructors
DataWebAuthorizeAttribute(ResponseMode)
Initializes a new instance of DataWebAuthorizeAttribute.
Declaration
public DataWebAuthorizeAttribute(DataWebAuthorizeAttribute.ResponseMode responseMode = ResponseMode.StatusCode)
Parameters
| Type | Name | Description |
|---|---|---|
| DataWebAuthorizeAttribute.ResponseMode | responseMode | The DataWebAuthorizeAttribute.ResponseMode to apply when authorization fails. Defaults to StatusCode. |