google / google/gae-secure-scaffold-python3

cloud.users api throwing assert error on local development

Open
#3 8 comments 1 reaction 1 assignee Claimed by @davidwtbuxton View on GitHub
Dominant language
Python
Stars
35
Forks
19
PR merge metrics
No merged PRs in 30d

Description

When trying to use users.get_current_user(), this line gives an assertion error which prevents the app from running locally:
https://github.com/google/gae-secure-scaffold-python3/blob/master/src/securescaffold/contrib/appengine/users.py#L69

As a current solution we wrap it in a try/catch, using a default email on an exception.

Is possible to have a mock user for a local environment, or similar?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.