客户端应用程序已请求访问资源"https://outlook.office365.com".该请求失败 [英] The client application has requested access to resource 'https://outlook.office365.com'. This request has failed

查看:68
本文介绍了客户端应用程序已请求访问资源"https://outlook.office365.com".该请求失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从office365 API测试示例代码,我可以登录到我的帐户,但是之后我总是会收到此异常

I am trying to test the sample code from office365 API, I could login to my account but after that i would always get this exception

AuthenticationFailedException被捕获

AuthenticationFailedException was caught

AADSTS65005:客户端应用程序已请求访问资源" https://outlook.office365.com ".该请求失败,因为客户端未在其requiredResourceAccess列表中指定此资源.

AADSTS65005: The client application has requested access to resource 'https://outlook.office365.com'. This request has failed because the client has not specified this resource in its requiredResourceAccess list.

跟踪ID:7a39b0bd-1738-418f-984a-feffae5b5d9b

Trace ID: 7a39b0bd-1738-418f-984a-feffae5b5d9b

相关ID:16da7c7f-9f0c-468f-a560-a51b1ac9b3bf

Correlation ID: 16da7c7f-9f0c-468f-a560-a51b1ac9b3bf

时间戳:2014-07-09 07:36:34Z

Timestamp: 2014-07-09 07:36:34Z

这是我一直在测试的代码,是由API生成的.

This is the code that I have been testing this code is generated by the API.

Authenticator authenticator = new Authenticator(); var authInfo = await authenticator.AuthenticateAsync("https://outlook.office365.com");

Authenticator authenticator = new Authenticator(); var authInfo = await authenticator.AuthenticateAsync("https://outlook.office365.com");

请帮助我或指出我做错了什么,这是我第一次在Office365中进行开发,请帮助并谢谢.

please help me or point-out what I'm doing wrong, this is my first time developing in office365 please help and thank you.

推荐答案

我只是遇到了遇到相同错误的问题,所以由于没人回答,我想我会发布找到的答案.此错误与在 https://manage.windowsazure.com 在Azure仪表板中的应用程序上请求的权限集有关.

I just came across your question having run into the same error, so since nobody ever answered I figured I would post the answer I found. This error is related to the permissions set to be requested on the app in the Azure dashboard at https://manage.windowsazure.com.

如果进入应用程序配置页面并滚动至底部,则只需在委托权限"下拉列表中添加相应的项.

If you go into your app configuration page and scroll to the bottom, you just need to add the corresponding items under the delegated permissions dropdown.

这篇关于客户端应用程序已请求访问资源"https://outlook.office365.com".该请求失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆