locked
Adding claims to Azure AD authentication. RRS feed

  • Question

  • User390177474 posted

    Hello. I am right now using Microsoft Authentication with Owin and Azure AD.

    I want to add a custom claim (not one of the optional ones you can choose in AAD), and be able to assign my own value to this claim, before login with Microsoft, so the claim gets associated with my Authentication login with Microsoft. This is because I want to be able to access this claim at a later stage in my application after login.

    Is this possible?

    Tuesday, June 23, 2020 10:34 AM

Answers

  • User288213138 posted

    Hi william12512512,

    I want to add a custom claim (not one of the optional ones you can choose in AAD), and be able to assign my own value to this claim, before login with Microsoft, so the claim gets associated with my Authentication login with Microsoft. This is because I want to be able to access this claim at a later stage in my application after login.

    As far as i know, you can not get the claim before Authentication login with Microsoft. Claims will only be provided after Authentication login with Microsoft.

    Best regards,

    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 24, 2020 7:09 AM