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

'Flask' object has no attribute 'session_cookie_name'

Aberta
#33 1 comentário 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
62
Forks
29
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.