我正在尝试从 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 中开发,请帮助并谢谢你。