Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从Azure REST API验证Microsoft电子邮件帐户?_Azure_Microsoft Graph Api_Azure Web App Service_Azure Rest Api - Fatal编程技术网

如何从Azure REST API验证Microsoft电子邮件帐户?

如何从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

我需要从我的项目中的RESTAPI验证真正的Microsoft电子邮件地址。我已经实现了Azure B2c Active directory,但在用户登录到其帐户之前。我需要使用REST API从现有系统捕获并验证用户的Microsoft帐户。

如果要检查用户是否存在,可以使用Microsoft Graph API,请参阅

如果要检查帐户和密码,可以使用(资源所有者密码凭据)流

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