microsoftgraph / msgraph-sdk-android-auth

MSAL Authentication Provider for Android
Other
5 stars 6 forks source link

How do I logged out #10

Open priyankagb opened 4 years ago

priyankagb commented 4 years ago

Hello, I am using this API to authenticate, but I don't know how to logged out using this API, please help me.

here is how I am authenticating

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();
baywet commented 3 years ago

Hi @priyankagb Thanks for reaching out and for the patience. With the release of the v3 of the java SDK, it now integrates with Azure Identity which supports a wide variety of authentication flows out of the box. We strongly encourage you to migrate to this v3 + azure identity, and you can read more about it in this issue. https://github.com/microsoftgraph/msgraph-sdk-java/issues/628

This issue won't be fixed, but I'll leave it open for visibility, and the repository will be archived soon.