Azure-Samples / Azure-Samples/ms-identity-docs-code-python

'Flask' object has no attribute 'session_cookie_name'

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

Mô tả

https://github.com/Azure-Samples/ms-identity-docs-code-python/blame/31cb05a4809787f278e54c529ef60e235067a305/flask-web-app/requirements.txt#L4-L4C6

It seems to me that the requirementsn are slightly outdated. The current req.txt allaws
`flask=2.3.1`
`flask-session=0.4.0` which is going to through the exception in the title.

updating to `flask-session=0.5.0` fixes it.
See in changelog: https://flasksession.readthedocs.io/en/latest/changes.html#version-0-5-0

working dependencies:
```ini
Package Version
------------------ --------
blinker 1.8.2
cachelib 0.13.0
certifi 2024.7.4
cffi 1.16.0
charset-normalizer 3.3.2
click 8.1.7
cryptography 42.0.8
flask 3.0.3
flask-session 0.5.0
identity 0.2.0
idna 3.7
itsdangerous 2.2.0
jinja2 3.1.4
markupsafe 2.1.5
msal 1.29.0
pycparser 2.22
pyjwt 2.8.0
python-dotenv 0.21.1
requests 2.32.3
urllib3 2.2.2
werkzeug 3.0.3

```

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.