Is there a way of using the V3 Microsoft Graph Java SDK with the Authorization Header? In the V1 and V2, i had this:
IAuthenticationProvider authenticationProvider = new IAuthenticationProvider() {
@Override
public void authenticateRequest(IHttpRequest request) {
request.addHeader(AUTHORIZATION_HEADER_NAME, OAUTH_BEARER_PREFIX + accessToken);
}
};
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider(authenticationProvider).buildClient();
But using the V3 SDK and the ICoreAuthenticationProvider , the only client I can create is the OKHTTP one, and not the IGraphServiceClient , and I lose all the "Microsoft API" (i get a string response, that I need to "unmarshall"... )
Thanks,