Class SharedKeyAuthorizeAttribute
A custom authorization attribute for checking shared key authorization.
Inherited Members
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public sealed class SharedKeyAuthorizeAttribute : TypeFilterAttribute, IFilterFactory, IOrderedFilter, IFilterMetadata
Constructors
SharedKeyAuthorizeAttribute(string, ulong)
Initializes a new instance of the SharedKeyAuthorizeAttribute class.
Declaration
public SharedKeyAuthorizeAttribute(string secretKeyName = "AppSettings:AppSecretKey", ulong seconds = 300)
Parameters
Type | Name | Description |
---|---|---|
string | secretKeyName | The name of the app secret key in the configuration settings. |
ulong | seconds | The number of seconds within which the request must be valid. |