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

Support un-authenticated requests. #2712

Conversation

stephenplusplus
Copy link
Contributor

Currently, we block all API requests if we can't load any kind of auth info (user-provided or ADC). This PR allows API requests to go through even if the authentication step failed, under one condition: there were no {{projectId}} placeholders in the request parameters (the URI, the JSON payload, or the query string).

In other words, if we have no evidence that a project ID is required, that could also mean that auth is not required. It's then up to the API to return the response that makes the most sense (a 401 or a success).

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 1, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 71d24a8 on stephenplusplus:spp--common-credential-error into 4fe84d0 on GoogleCloudPlatform:master.

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. core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants