如何解决我如何从OneDrive中注销
我正在使用this API进行Microsoft身份验证,但是我不知道如何使用此API登出,请帮帮我。
这是我的身份验证方式
publicClientApplication = new PublicClientApplication(getActivity(),AppConstants.OtherConstants.ONE_DRIVE_APP_ID);
msalAuthenticationProvider = new MSALAuthenticationProvider(
getActivity(),MyApplication.getInstance(),publicClientApplication,new String[]{
// An example set of scopes your application could use
"https://graph.microsoft.com/Calendars.ReadWrite","https://graph.microsoft.com/Contacts.ReadWrite","https://graph.microsoft.com/Files.ReadWrite","https://graph.microsoft.com/Mail.ReadWrite","https://graph.microsoft.com/Mail.Send","https://graph.microsoft.com/User.ReadBasic.All","https://graph.microsoft.com/User.ReadWrite","offline_access","openid"
});
graphClient =
GraphServiceClient
.builder()
.authenticationProvider(msalAuthenticationProvider)
.buildClient();
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。