public class HMACAuthenticationAttribute : Attribute, IAsyncAuthorizationFilter
{
public HMACAuthenticationAttribute(IUser user)
{
.....
}
}
The above is my class attribute. I want to call this in below controller.Is there any way to call the above class.
[HMACAuthentication()]
public class WeatherForecastController : ControllerBase
{
}