Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions appengine/standard/firebase/firenotes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ A simple note-taking application that stores users' notes in their own personal
notebooks separated by a unique user ID generated by Firebase. Uses Firebase
Authentication, Google App Engine, and Google Cloud Datastore.

This sample is used on the following documentation page:

<https://cloud.google.com/appengine/docs/python/authenticating-users-firebase-app-engine/>

You'll need to have [Python 2.7](https://www.python.org/), the
[App Engine SDK](https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python),
and the [Google Cloud SDK](https://cloud.google.com/sdk/?hl=en)
Expand All @@ -14,7 +18,7 @@ this sample.

1. Clone this repo:

git clone https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/standard/firebase/auth/firenotes
git clone https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/standard/firebase/firenotes

1. Within a virtualenv, install the dependencies to the backend service:

Expand All @@ -32,10 +36,10 @@ this sample.
environment variable.
1. Select which providers you want to enable. Delete the providers from
`main.js` that you do no want to offer. Enable the providers you chose to keep
in the Firebase console under **Auth** > **SIGN-IN METHOD** >
in the Firebase console under **Auth** > **Sign-in Method** >
**Sign-in providers**.
1. In the Firebase console, under **OAuth redirect domains**, click
**ADD DOMAIN** and enter the domain of your app on App Engine:
**Add Domain** and enter the domain of your app on App Engine:
[PROJECT_ID].appspot.com. Do not include "http://" before the domain name.

## Run Locally
Expand All @@ -45,7 +49,7 @@ server with the following command:

dev_appserver.py frontend/app.yaml backend/app.yaml

1. Visit [http://locahost:8080/](http://locahost:8080/) in a web browser.
1. Visit <http://locahost:8080/> in a web browser.

## Deploy
1. Change the backend host URL in `main.js` to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def extract_public_key_from_certificate(x509_certificate):
subject_public_key_info = tbs_certification[6]

return subject_public_key_info
# [EMD extract_public_key_from_certificate]
# [END extract_public_key_from_certificate]


# [START verify_auth_token]
Expand Down