-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
The problem is in using Firebase for handling user login in this tutorial step, which walks the user in creating code like in this GitHub directory when completed.
To reproduce the problem:
- Create firebase project
- Create firebase app
- In Authentication -> Sign-in method, set up Google and Email auth
- In Authentication -> Settings, add 127.0.0.1 as authorized domain
- In Project Settings -> General, in SDK setup and configuration, copy js for app config
- Set up the codelab code and launch the site:
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples
$ cd python-docs-samples/appengine/standard_python3/building-an-app/building-an-app-3
## Update TODO in templates/index.html with app config js from above
$ python3.13 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python main.py
The site can be viewed at http://127.0.0.1:8080/
Signing in with either of the two methods fails:
- Sign in with Google: OAuth flow completes but user is not signed in when redirect back to site (user is not present in database)
- Sign in with email: works first time, but cannot sign in again (user is present in database)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.