google / google/gae-secure-scaffold-python3

cloud.users api throwing assert error on local development

未关闭
#3 8 条评论 1 个 reaction 已指派 1 人 已被 @davidwtbuxton 认领 在 GitHub 查看
主要语言
Python
星标
35
派生
19
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。