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

Authentication failure with uWSGI #99

Closed
iMilnb opened this issue Jul 4, 2013 · 4 comments
Closed

Authentication failure with uWSGI #99

iMilnb opened this issue Jul 4, 2013 · 4 comments

Comments

@iMilnb
Copy link

iMilnb commented Jul 4, 2013

Hi,

I've developped a simple Flask app which uses flack-login, it behaves perfectly when it is launched as a standalone app, but when it is called with uWSGI, the authentication never succeeds.
I assume that it may (must?) be an uWSGI issue or a configuration problem, but the (very basic) application works properly without flask-loginm thus that opened issue.
Are you aware of such behaviour or have any idea why flask-login would fail with uWSGI? I though about a buffers-size problem, but rose it to 65535 and it didn't have any effect.

I am using flask 0.10 and flask-login 0.2.4 installed with pip, and uwsgi + python-plugin 1.2.3 from Debian Wheezy.

Thanks

@maxcountryman
Copy link
Owner

I am not aware of any issues with uwsgi and flask-login.

@maxcountryman
Copy link
Owner

Without more information, I don't see anyway to conclude this is an issue with flask-login. In light of that, I'm closing this.

@iMilnb
Copy link
Author

iMilnb commented Jul 5, 2013

I understand. FWIW I fixed that issue a couple of minutes ago: it seems like dealing with a global array containing users and being processed by the user_loader callback actually fails with both uWSGI and gunicorn. Reentrance problem maybe...

@maxcountryman
Copy link
Owner

If you have a fix that applies to the broader scope of flask-login, feel free to make a pull request. :)

@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants