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.
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
IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
Member
8 Points
13 Posts
Adding claims to Azure AD authentication.
Jun 23, 2020 10:34 AM|william12512512|LINK
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?
Contributor
3370 Points
1409 Posts
Re: Adding claims to Azure AD authentication.
Jun 24, 2020 07:09 AM|samwu|LINK
Hi william12512512,
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