Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Azure AD B2C - How to get user-object-id in my Asp.net App?

$
0
0

Hi;

I plan to use Azure AD B2C as my Identity Management service. Which means my users are being created and stored in Azure system when they signup.

However, a user that signs up in Azure and a token is sent to my Asp App, I also must create a new user (Consumer or vendor) in my database, because that user will have data related to her, like her subscription data, items purchased and etc.

In order for me to coordinate my created user and Azure based created user that are both the same, I must use a property of that user in Azure store that is unique and never changes and based on my research, it is"user-object-id". This way, if I also create a user with that ID, anytime a user login in I can pull up that user's data from my database based on that ID.

But my question is, when a new user is created or logged in and my app gets a Token, How can I get "user-object-id" from that token in my Asp.Net?

And secondly, where in Asp.net is the best entry point to create a user in my database using user-object-id?

Thanks!

..Ben



..Ben


Viewing all articles
Browse latest Browse all 16000

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>