none
Registering policies in the authorization middleware: defining additional claim RRS feed

  • Question

  • Hi,

    thank you for this nice article: https://msdn.microsoft.com/en-us/magazine/mt826337.aspx about policy based authorization.
    I have a question about registering policies in the authorization middleware, in the article, at paragraph "Registering policies", in this snippet code: https://msdn.microsoft.com/en-us/magazine/mt826337.aspx#code-snippet-6, you are using "policy.RequireClaim("editor","contents")", but where you define those two additional claim, editor and contents?
    How can I add this claim if I'm using an "external authentication" like AzureAD?

    Thank you,
    Marco

    Tuesday, April 30, 2019 10:57 AM