google / google/gae-secure-scaffold-python3

cloud.users api throwing assert error on local development

Đang mở
#3 8 bình luận 1 reaction 1 người được giao Được @davidwtbuxton nhận Xem trên GitHub
Ngôn ngữ chính
Python
Star
35
Fork
19
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.