首页 > 解决方案 > 如何从 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();

标签: androidauthenticationmicrosoft-graph-apionedrivemsal

解决方案



推荐阅读