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

Allow unauthenticated requests and do not always require project ID #735

Merged
merged 3 commits into from
Nov 11, 2017

Conversation

dwsupplee
Copy link
Contributor

With this change we longer always require a projectId/credentials. The driving factor behind this change is to allow for unauthenticated downloads of objects from cloud storage, but it may end up being useful for other APIs down the line as well.

@dwsupplee dwsupplee added the auth label Nov 10, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2017
@michaelbausor
Copy link
Contributor

LGTM. I looked for a test that did an unauthenticated download of a storage object, but didn't see one - did I miss it?

@dwsupplee
Copy link
Contributor Author

Working on adding one now, as well as fixing the test failure on travis (passed for me locally, so trying to figure out what went wrong).

Copy link
Contributor

@michaelbausor michaelbausor left a comment

Choose a reason for hiding this comment

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

LGTM

@dwsupplee
Copy link
Contributor Author

Looks like some environment variables on travis' end were the cause of the failure, PTAL - should be all set.

@michaelbausor
Copy link
Contributor

Tricky! LGTM

@dwsupplee dwsupplee merged commit ebba579 into googleapis:master Nov 11, 2017
@dwsupplee dwsupplee mentioned this pull request Nov 11, 2017
$this->projectId = $this->detectProjectId($config);

if (!$config['keyFile'] && !isset($config['credentialsFetcher'])) {

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth 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