我正在尝试测试来自Office365 API的示例代码,我能够登录到我的帐户,但之后总是会出现以下异常
捕获到了AuthenticationFailedException
AADSTS65005:客户端应用程序请求访问资源'https://outlook.office365.com'。此请求失败,因为客户端未在其requiredResourceAccess列表中指定此资源。
跟踪 ID:7a39b0bd-1738-418f-984a-feffae5b5d9b
相关 ID:16da7c7f-9f0c-468f-a560-a51b1ac9b3bf
时间戳:2014年07月09日07:36:34Z
这是我一直在测试的代码,它是由API生成的。
Authenticator authenticator = new Authenticator();
var authInfo = await authenticator.AuthenticateAsync("https://outlook.office365.com");
请帮助我指出我做错了什么,这是我第一次在office365中开发,请帮忙,谢谢。