Skip to content

Auth samples for Endpoints.#431

Merged
theacodes merged 3 commits intoGoogleCloudPlatform:masterfrom
liminw:master
Aug 2, 2016
Merged

Auth samples for Endpoints.#431
theacodes merged 3 commits intoGoogleCloudPlatform:masterfrom
liminw:master

Conversation

@liminw
Copy link
Contributor

@liminw liminw commented Jul 28, 2016

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)

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 28, 2016
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@theacodes
Copy link
Contributor

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

@liminw liminw force-pushed the master branch 2 times, most recently from 537e0a1 to 97e7d65 Compare July 29, 2016 21:02
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)
six==1.10.0
pyyaml==3.11
requests==2.10.0
google-api-python-client
Copy link
Contributor

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.

@theacodes
Copy link
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.

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
Copy link
Contributor

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

@theacodes theacodes merged commit e82c5bc into GoogleCloudPlatform:master Aug 2, 2016
@theacodes
Copy link
Contributor

Merged. Thank you!

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants