Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask-cognito Error #27

Open
ghaurii opened this issue Dec 15, 2023 · 3 comments
Open

Flask-cognito Error #27

ghaurii opened this issue Dec 15, 2023 · 3 comments

Comments

@ghaurii
Copy link

ghaurii commented Dec 15, 2023

Hi,
I am trying to Implement User Authentication in Flask using Amazon Cognito.
I am using python 3.9 and installed flask and flask-cognito

I'm encountering an issue while using flask_cognito in my Flask app. When running the app (python app.py), I'm getting the following ImportError:
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/path/to/venv/lib/python3.9/site-packages/flask/init.py)

Any insights or solutions would be greatly appreciated.
Thank you!

@revmischa
Copy link
Member

It may rely on an older, undocumented API
Fixes are most welcome! I'm not maintaining this library anymore

@daniel-panhead
Copy link
Contributor

Unfortunately _request_ctx_stack has been removed from Flask in the latest versions. I have made a PR #28 which uses the application context instead to store data, which seems to fix the issue.

@revmischa
Copy link
Member

Thanks for your contribution! I'm releasing it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants