google / google/gae-secure-scaffold-python3

cloud.users api throwing assert error on local development

オープン
#3 コメント 8 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。