I have a requirement to verify the genuine Microsoft email address from REST API from my project. I have implemented the Azure B2c Active directory but before users signs in to their account. I need to capture & validate the User's Microsoft account from our existing system using REST API.
Asked
Active
Viewed 599 times
1 Answers
1
If you want to check the user exists, you could use Microsoft Graph API, see here.
If you want to check your account and password, you could use ROPC(resource owner password credentials) flow.
https://<tenant-name>.b2clogin.com/<tenant-name>.onmicrosoft.com/B2C_1A_ROPC_Auth/oauth2/v2.0/token
username=<user-account>
&password=<Passxword1>
&grant_type=password
&scope=openid <application-id> offline_access
&client_id=<application-id>
&response_type=token+id_token

unknown
- 6,778
- 1
- 5
- 14
-
If my reply is helpful, please accept it as answer, thank you. – unknown May 31 '21 at 09:32