0

I have created custom attribute for Web api 2. I inherited from Authorize attribute. New attribute takes params attribute like public MyAuthorizeAttribute(params string[] scopes){}

and usage will be something like this MyAuthorizeAttribute("Test1","Test2"). How can i access Test1 and Test2 into protected override bool IsAuthorized(HttpActionContext actionContext){}

Thanks

rhldr
  • 1,079
  • 1
  • 7
  • 12
Amol Hegana
  • 147
  • 1
  • 10

1 Answers1

0

BaseClass constructor call was not made. So default constructor was getting called.

Amol Hegana
  • 147
  • 1
  • 10