Get Google authorization from java program open browser for asking already given permission
问题 In order for a java program to access my google drive I need to create an oauth2.Credential using a json credential file (see https://console.developers.google.com) for getting an access token. The problem is when I create the Credential java instance the java program open Internet Explorer and ask permission for Drive. Credential credential = new AuthorizationCodeInstalledApp(flow , new LocalServerReceiver()) .authorize("user") ; If I click button "allow" , Credential is created and I get a