Ich möchte mit Google-Blatt mit Google Java Client-Bibliothek verbinden. Ich habe folgendes tutorial versucht und es funktioniert gut.
Hier nach am Beispiel client_secret.json Dateiwie man von Java zu Google Blatt mit GoogleIdToken verbindet
InputStream in = Quickstart.class.getResourceAsStream("/client_secret.json");
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));
// Build flow and trigger user authorization request.
GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT, JSON_FACTORY,
clientSecrets, SCOPES).setDataStoreFactory(DATA_STORE_FACTORY).setAccessType("offline").build();
Was ich will, ist zu verbinden Blatt Google nicht client_secret.json Datei aber mit GoogleIdToken
Objekt.
ist es möglich?
GoogleIdToken von lib com.google.api.client.googleapis.auth.oauth2.GoogleIdToken