android - 如何从 onedrive 注销
问题描述
我正在使用此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();
解决方案
推荐阅读
- python - 将网络抓取的结果分组到各个部分
- html - CSS 和 HTML 中未设置背景颜色
- javascript - 添加 .indexOn 安全规则与不添加安全规则之间是否存在性能差异?
- typescript - 元素隐式具有“任何”类型,因为类型对象没有索引签名
- r - 如果在 R 中满足条件,则提供空参数
- sql - 选择是否不同计数> 2?
- javascript - 查找最近的 x,y 坐标
- json - 使用字典从 API 解析 Json
- python - ImportError:无法使用 Office 365 项目从“O365”导入名称“帐户”
- node.js - NodeJS botbuilder SDKv4