Android 如何从onedrive注销
我正在使用API进行Microsoft身份验证,但我不知道如何使用此API注销,请帮助我 下面是我如何验证的Android 如何从onedrive注销,android,authentication,microsoft-graph-api,onedrive,msal,Android,Authentication,Microsoft Graph Api,Onedrive,Msal,我正在使用API进行Microsoft身份验证,但我不知道如何使用此API注销,请帮助我 下面是我如何验证的 publicClientApplication = new PublicClientApplication(getActivity(), AppConstants.OtherConstants.ONE_DRIVE_APP_ID); msalAuthenticationProvider = new MSALAuthenticationProvider( g
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();
我已经用这个替换了我的SDK