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

  • Question

  • Hi,

    thank you for this nice article: 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:, 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,

    Tuesday, April 30, 2019 10:57 AM