Class SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter
A filter for checking shared key authorization.
Inherited Members
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public class SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter : IAuthorizationFilter, IFilterMetadata
Remarks
Initializes a new instance of the SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter class.
Constructors
SharedKeyAuthorizeFilter(string, ulong)
A filter for checking shared key authorization.
Declaration
public SharedKeyAuthorizeFilter(string secretKeyName, ulong seconds)
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. |
Remarks
Initializes a new instance of the SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter class.
Methods
OnAuthorization(AuthorizationFilterContext)
Called to perform authorization for the specified context.
Declaration
public void OnAuthorization(AuthorizationFilterContext context)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationFilterContext | context | The authorization context. |