Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/9.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 Web API的身份验证令牌_Azure_Authentication_Asp.net Web Api_Azure Active Directory - Fatal编程技术网

Azure Web API的身份验证令牌

Azure Web API的身份验证令牌,azure,authentication,asp.net-web-api,azure-active-directory,Azure,Authentication,Asp.net Web Api,Azure Active Directory,我在使用令牌访问Azure Web API时遇到问题。我跟着 我可以通过对授权令牌端点执行POST请求来成功请求访问令牌: https://login.microsoftonline.com/{Tenant ID}/oauth2/token 我的帖子: client_id:( Web API client ID ) client_secret:( Web API client Secret ) grant_type:password username:userName password:***

我在使用令牌访问Azure Web API时遇到问题。我跟着

我可以通过对授权令牌端点执行POST请求来成功请求访问令牌:

https://login.microsoftonline.com/{Tenant ID}/oauth2/token
我的帖子:

client_id:( Web API client ID )
client_secret:( Web API client Secret )
grant_type:password
username:userName
password:*******
resource:sharepoint.com

我正在使用POSTMAN测试我的调用,当我尝试使用上面返回的令牌访问我的API时,我得到了一个未经授权的
401

是我的WebConfig文件中的一个配置问题。

是我的WebConfig文件中的一个配置问题