GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auth samples for Endpoints. by liminw · Pull Request #431 · GoogleCloudPlatform/python-docs-samples

Conversation

@liminw

@liminw liminw commented Jul 28, 2016

Copy link
Copy Markdown
Contributor

Added three samples:

  1. Use App Engine default service account client (without key file).
  2. Use non-default service account client (without key file).
  3. Use Google ID token client (without key file)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 28, 2016
theacodes
theacodes reviewed Jul 28, 2016
View reviewed changes
Comment thread appengine/flexible/endpoints/README.md Outdated

@theacodes theacodes Jul 28, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Isn't with key file implied? Is there any way to do it without a key file?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@liminw liminw Jul 28, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

All the three auth samples added here are to show how to authenticate with endpoints without a key file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@theacodes

theacodes commented Jul 28, 2016

Copy link
Copy Markdown
Contributor

Finished a first pass. Let me know when you're ready for another pass.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liminw
liminw force-pushed the master branch 2 times, most recently from 537e0a1 to 97e7d65 Compare July 29, 2016 21:02
@liminw
Auth samples for Endpoints.
6ecc915
Added three samples:
1. Use App Engine default service account client (without key file).
2. Use non-default service account client (without key file).
3. Use Google ID token client (without key file)
@liminw
liminw force-pushed the master branch from 97e7d65 to 6ecc915 Compare July 29, 2016 21:10
theacodes
theacodes reviewed Jul 29, 2016
View reviewed changes
Comment thread appengine/flexible/endpoints/requirements.txt Outdated
six==1.10.0
pyyaml==3.11
requests==2.10.0
google-api-python-client

@theacodes theacodes Jul 29, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

please pin the version, I think 1.5.1 is the latest.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@theacodes

theacodes commented Jul 29, 2016

Copy link
Copy Markdown
Contributor

Code looks mostly good, two things I would like to see in the README before we merge this:

  1. update appcfg.py usage to gcloud app.
  2. Make it very clear that these are App Engine standard applications.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liminw
Auth Samples (addressed 2nd pass of comments)
4e8801c
theacodes
theacodes reviewed Aug 1, 2016
View reviewed changes
Comment thread appengine/flexible/endpoints/README.md Outdated
4. Upload your application to Google App Engine by invoking the following command.

appcfg.py -A <YOUR-CLIENT-PROJECT-ID> -V v1 update .
gcloud app deploy app.yaml --project=<YOUR-CLIENT-PROJECT-ID> --promote

@theacodes theacodes Aug 1, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Neither --project or --promote are needed for gcloud app

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@liminw
Service to Service auth sample. Updated README.
f6931db
@theacodes
theacodes merged commit e82c5bc into GoogleCloudPlatform:master Aug 2, 2016
@theacodes

theacodes commented Aug 2, 2016

Copy link
Copy Markdown
Contributor

Merged. Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@liminw @theacodes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.