Hi @Roshan Tolwani ,
Thanks for the question.
You can do this via the Azure portal. Please follow the steps in this document: Configure content protection policies by using the Azure portal and here is a .NET example: Create ContentKeys with .NET
"Media Services supports multiple ways of authenticating users who make key or license requests. You must configure the content key authorization policy. Your client then must meet the policy before the key/license can be delivered to it. The content key authorization policy can have one or more authorization restrictions, either open or token restrictions."
Hope that helps. Please let us know if you have further questions
Thanks,
Grace
------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--