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

'Flask' object has no attribute 'session_cookie_name'

Aperta
#33 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
62
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.