0

Referring back to these links I tried using [RequiredApiKey] however it's never getting recognized as a class attribute on the controller:

enter image description here

enter image description here

1 Answer 1

1

The RequiredApiKey attribute is in a separate package and namespace Sitecore.Services.Infrastructure.Security. I can't see from your screenshot whether you've added a reference to Sitecore.Services.Infrastructure.Sitecore, and if you have this in your using declarations:

using Sitecore.Services.Infrastructure.Security;
1
  • Yes, Thank you so much for the help, you're quiet right however it required also to install Microsoft.AspNet.WebApi.Core Jun 28, 2022 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.