如何从Azure REST API验证Microsoft电子邮件帐户?
我需要从我的项目中的RESTAPI验证真正的Microsoft电子邮件地址。我已经实现了Azure B2c Active directory,但在用户登录到其帐户之前。我需要使用REST API从现有系统捕获并验证用户的Microsoft帐户。如果要检查用户是否存在,可以使用Microsoft Graph API,请参阅 如果要检查帐户和密码,可以使用(资源所有者密码凭据)流如何从Azure REST API验证Microsoft电子邮件帐户?,azure,microsoft-graph-api,azure-web-app-service,azure-rest-api,Azure,Microsoft Graph Api,Azure Web App Service,Azure Rest Api,我需要从我的项目中的RESTAPI验证真正的Microsoft电子邮件地址。我已经实现了Azure B2c Active directory,但在用户登录到其帐户之前。我需要使用REST API从现有系统捕获并验证用户的Microsoft帐户。如果要检查用户是否存在,可以使用Microsoft Graph API,请参阅 如果要检查帐户和密码,可以使用(资源所有者密码凭据)流 https://.b2clogin.com/.onmicrosoft.com/B2C_1A_ROPC_Auth/oaut
https://.b2clogin.com/.onmicrosoft.com/B2C_1A_ROPC_Auth/oauth2/v2.0/token
用户名=
&密码=
&授权类型=密码
&scope=openid脱机访问
&客户识别码=
&响应类型=令牌+id\u令牌
如果我的回答有帮助,请接受我的回答,谢谢。
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