1
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
{
}
3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.