Class SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter
A filter for checking shared key authorization.
Inheritance
object
SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter
Implements
IAuthorizationFilter
IFilterMetadata
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public class SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter : IAuthorizationFilter, IFilterMetadata
Constructors
SharedKeyAuthorizeFilter(string, ulong)
Initializes a new instance of the SharedKeyAuthorizeAttribute.SharedKeyAuthorizeFilter class.
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. |
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. |
Implements
Microsoft.AspNetCore.Mvc.Filters.IAuthorizationFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata