Skip to content

Conversation

radium226
Copy link

Description

I wasn't able to make the domain-wide delegation works, and I think it's because the credentials is not reassigned, and the createDelegated returns a new instance. See this

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

Copy link

cla-bot bot commented Aug 27, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@github-actions github-actions bot added the google-sheets Google Sheets connector label Aug 27, 2025
@@ -295,7 +295,7 @@ private static Credential credentialFromStream(InputStream inputStream, Optional
throws IOException
{
GoogleCredential credential = GoogleCredential.fromStream(inputStream).createScoped(SCOPES);
delegatedUserEmail.ifPresent(credential::createDelegated);
credential = delegatedUserEmail.map(credential::createDelegated).orElse(credential);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@radium226
Copy link
Author

Hello! I subscribed to the CLA but I don't have any feedback. Is it okay?

@chenjian2664
Copy link
Contributor

@radium226 the CLA process is handled manually and usually takes 1–2 weeks, so no need to worry

…e/sheets/SheetsClient.java

Co-authored-by: chenjian2664 <[email protected]>
Copy link

cla-bot bot commented Sep 5, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@@ -295,7 +295,7 @@ private static Credential credentialFromStream(InputStream inputStream, Optional
throws IOException
{
GoogleCredential credential = GoogleCredential.fromStream(inputStream).createScoped(SCOPES);
delegatedUserEmail.ifPresent(credential::createDelegated);
return delegatedUserEmail.map(credential::createDelegated).orElse(credential);
return credential;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line becomes unreachable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-sheets Google Sheets connector
Development

Successfully merging this pull request may close these issues.

3 participants