Skip to content
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

Java is missing ability to do OAuth2 domain wide delegation #90

Closed
lesv opened this issue Mar 7, 2017 · 1 comment
Closed

Java is missing ability to do OAuth2 domain wide delegation #90

lesv opened this issue Mar 7, 2017 · 1 comment
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@lesv
Copy link
Contributor

lesv commented Mar 7, 2017

This is needed for google-auth-library-java and googleapis/google-api-java-client#1037 (creating an issue for both projects):

User's current way:

GoogleCredential googleCredential = new GoogleCredential.Builder()
     .setTransport(TRANSPORT).setJsonFactory(JSON_FACTORY)
     .setServiceAccountId(emailAddress)
     .setServiceAccountPrivateKeyFromP12File(p12File)
     .setServiceAccountScopes(scopes)
     .setServiceAccountUser(user).build();

Would like: to do:

GoogleCredential googleCredential = 
    GoogleCredential.fromStream(jsonInputStream, TRANSPORT, JSON_FACTORY).createScoped(Collections.singleton(Oauth2Scopes.USERINFO_EMAIL))

Python you just do:

credentials = credentials.create_delegated(user)
@tcoffee-google
Copy link
Contributor

@vchudnov-g should this be closed?

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants