Skip to content

Updates to Google ID token service-to-service auth sample#674

Merged
dpebot merged 3 commits intoGoogleCloudPlatform:masterfrom
liminw:mmm
Nov 21, 2016
Merged

Updates to Google ID token service-to-service auth sample#674
dpebot merged 3 commits intoGoogleCloudPlatform:masterfrom
liminw:mmm

Conversation

@liminw
Copy link
Copy Markdown
Contributor

@liminw liminw commented Nov 18, 2016

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 18, 2016
import webapp2

DEFAUTL_SERVICE_ACCOUNT = "YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com"
SERVICE_ACCOUNT_EMAIL = "YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you can grab this from app_identity: app_identity. get_service_account_name()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi Jon, thanks for the review. I prefer to use a constant SERVICE_ACCOUNT_EMAIL here. This way, the code snippet for filling out payload would look the same for both default service account and non-default service account.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good.

@theacodes
Copy link
Copy Markdown
Contributor

@dpebot can you merge when travis is green?

@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Nov 21, 2016

Okay! I'll merge when all statuses are green.

@dpebot dpebot added the automerge Merge the pull request once unit tests and other checks pass. label Nov 21, 2016
@dpebot dpebot merged commit e43f218 into GoogleCloudPlatform:master Nov 21, 2016
chalmerlowe pushed a commit that referenced this pull request Apr 7, 2026
* samples: storage_download_byte_range

* added spacing

* updated readme

* fixed test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Merge the pull request once unit tests and other checks pass. 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