FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Prefer provided credentials if they are present in FirestoreOptions by andrewparmet · Pull Request #3460 · googleapis/google-cloud-java · GitHub

Prefer provided credentials if they are present in FirestoreOptions - #3460

Closed
andrewparmet wants to merge 1 commit into
googleapis:masterfrom
andrewparmet:master
Closed

Prefer provided credentials if they are present in FirestoreOptions#3460
andrewparmet wants to merge 1 commit into
googleapis:masterfrom
andrewparmet:master

Conversation

andrewparmet commented Jul 12, 2018
edited
Loading

Copy link
Copy Markdown

Addresses #3458.

As of 0.52.0-beta, calls to setCredentials() on FirestoreOptions are effectively ignored. This is because GrpcTransportOptions.setUpCredentialsProvider() is no longer called in GrpcFirestoreRpc - instead the settings builder just pulls the credentials provider regardless of whether or not a fixed credential was supplied in the original options.

It used to be:

settingsBuilder.setCredentialsProvider(
    GrpcTransportOptions.setUpCredentialsProvider(options));

Today it reads:

settingsBuilder.setCredentialsProvider(options.getCredentialsProvider());

This was changed in #3320. (Diff line)

The call can be restored in the same class with some conditional logic, or the FirestoreOptions can try to return the correct CredentialsProvider.

andrewparmet requested a review from pongad as a code owner July 12, 2018 16:59
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 12, 2018

pongad commented Jul 12, 2018

Copy link
Copy Markdown
Contributor

@schmidt-sebastian Can you take a look?

Copy link
Copy Markdown
Contributor

Thanks for sending this over! The problem you described exists in both the CredentialsProvider and the ChannelProvider. I have opened a PR to deal with both: #3472

Let's leave this open until 3472 is approved.

chingor13 pushed a commit that referenced this pull request Mar 24, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>2.51.1-SNAPSHOT</summary>

### Updating meta-information for bleeding-edge SNAPSHOT release.
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL