Skip to content

datastore: don't require auth with local datastore server#940

Merged
callmehiphop merged 1 commit intogoogleapis:masterfrom
stephenplusplus:spp--gcd-no-auth
Nov 12, 2015
Merged

datastore: don't require auth with local datastore server#940
callmehiphop merged 1 commit intogoogleapis:masterfrom
stephenplusplus:spp--gcd-no-auth

Conversation

@stephenplusplus
Copy link
Contributor

Fixes #936

When a service object is created (such as a Dataset object), we have the choice of telling our "makeAuthenticatedRequestFactory" function that we don't care about the authentication part via an option called customEndpoint. A Dataset is the one place we use this option in the event a user is trying to communicate with their own Datastore server.

We were skipping the auth when:

  • A user instantiated a Dataset providing an apiEndpoint option:

    var dataset = datastore.dataset({ apiEndpoint: 'http://localhost:8080' });

But, we also need to support when:

  • A user has the DATASTORE_HOST env var set

We have had half of the puzzle solved; we detect the presence of that env var and send the API requests to it accordingly. But, we forgot to update customEndpoint, the option that skips authenticating.

// @brainsiq

@stephenplusplus stephenplusplus added the api: datastore Issues related to the Datastore API. label Nov 12, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 12, 2015

This comment was marked as spam.

This comment was marked as spam.

@jgeewax
Copy link
Contributor

jgeewax commented Nov 12, 2015

LGTM

callmehiphop added a commit that referenced this pull request Nov 12, 2015
datastore: don't require auth with local datastore server
@callmehiphop callmehiphop merged commit 7374122 into googleapis:master Nov 12, 2015
@callmehiphop
Copy link
Contributor

👍

sofisl pushed a commit that referenced this pull request Jan 17, 2023
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 3, 2026
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@types/sinon](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^9.0.0` -> `^10.0.0`](https://renovatebot.com/diffs/npm/@types%2fsinon/9.0.11/10.0.0) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/compatibility-slim/9.0.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/confidence-slim/9.0.11)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

:date: **Schedule**: "after 9am and before 3pm" (UTC).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-bigquery).
sofisl pushed a commit that referenced this pull request Feb 5, 2026
#940)

* build: update auto-approve file to v2

Source-Link: googleapis/synthtool@19eb6fc
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:b9e4584a1fe3c749e3c37c92497b13dce653b2e694f0261f0610eb0e15941357
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastore Issues related to the Datastore API. 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