Azure Web API的身份验证令牌
我在使用令牌访问Azure Web API时遇到问题。我跟着 我可以通过对授权令牌端点执行POST请求来成功请求访问令牌: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:***
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文件中的一个配置问题