This is needed for `google-auth-library-java` and google/google-api-java-client#1037 (creating an issue for both projects): User's current way: ```java GoogleCredential googleCredential = new GoogleCredential.Builder() .setTransport(TRANSPORT).setJsonFactory(JSON_FACTORY) .setServiceAccountId(emailAddress) .setServiceAccountPrivateKeyFromP12File(p12File) .setServiceAccountScopes(scopes) .setServiceAccountUser(user).build(); ``` Would like: to do: ```java GoogleCredential googleCredential = GoogleCredential.fromStream(jsonInputStream, TRANSPORT, JSON_FACTORY).createScoped(Collections.singleton(Oauth2Scopes.USERINFO_EMAIL)) ``` Python you just do: ```python credentials = credentials.create_delegated(user) ```
This is needed for
google-auth-library-javaand googleapis/google-api-java-client#1037 (creating an issue for both projects):User's current way:
Would like: to do:
Python you just do: