-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use v6 with updated msal authentication library for Android #2137
Comments
Same here, any hint? |
Preliminary commentReplying to last message on #2160 and to the question at hand:
Question asked to Gemini within Android Studio:Please explain from the code of this project how can I instantiate a GraphServiceClient when all I have is an AccessToken string? ReplyYou can instantiate a GraphServiceClient with an authentication token using the GraphServiceClient.builder() method.
Then, use the GraphServiceClient.builder() to create a new GraphServiceClient instance with the OkHttpClient you just created.
This will create a GraphServiceClient that will use the provided authentication token for all requests. |
The Microsoft Graph sample Android app
https://github.com/microsoftgraph/msgraph-sample-android
no longer compiles with msgraph-sdk-java version 6.
There is an updated msal authentication library for Android
https://github.com/AzureAD/microsoft-authentication-library-for-android
and that works: I can sign in and out in a single account client application. But I have no idea how to connect to this library Microsoft Graph SDK for Java
Particularly: the old project had a class AuthorizationHelper that bridged for getting updated tokens between the signed in ClientApplication and the GraphServiceClient.
Any example or documentation on how build that connection with this v6 library?
The text was updated successfully, but these errors were encountered: