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

Disable authentication when using service emulator #780

Merged
merged 2 commits into from
Dec 12, 2017
Merged

Disable authentication when using service emulator #780

merged 2 commits into from
Dec 12, 2017

Conversation

jdpedrie
Copy link
Contributor

@jdpedrie jdpedrie commented Dec 7, 2017

Closes #726.

@jdpedrie jdpedrie requested a review from dwsupplee December 7, 2017 22:33
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 7, 2017
@jdpedrie jdpedrie added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 7, 2017
@jdpedrie jdpedrie changed the title Disable authentication when using service emulator [WIP] Disable authentication when using service emulator Dec 7, 2017
@jdpedrie jdpedrie removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 8, 2017
@jdpedrie jdpedrie changed the title [WIP] Disable authentication when using service emulator Disable authentication when using service emulator Dec 8, 2017
@@ -137,7 +137,8 @@ public function __construct(array $config = [])
'namespaceId' => null,
'returnInt64AsObject' => false,
'scopes' => [self::FULL_CONTROL_SCOPE],
'projectIdRequired' => true
'projectIdRequired' => true,
'hasEmulator' => (bool) getenv('DATASTORE_EMULATOR_HOST')

This comment was marked as spam.

$baseUri = $this->getEmulatorBaseUri(self::BASE_URI, $emulatorHost);
$baseUri = self::BASE_URI;
if ($this->emulatorEnabled($emulatorHost)) {
$baseUri = $this->emulatorBaseUri($emulatorHost);

This comment was marked as spam.

This comment was marked as spam.

@jdpedrie jdpedrie merged commit 238c840 into googleapis:master Dec 12, 2017
@jdpedrie jdpedrie deleted the emulator-anonymous-access branch December 12, 2017 14:44
@jdpedrie jdpedrie mentioned this pull request Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants