Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Flask-Login dependency #856

Open
rprinsloo opened this issue Feb 10, 2020 · 1 comment
Open

Flask-Login dependency #856

rprinsloo opened this issue Feb 10, 2020 · 1 comment

Comments

@rprinsloo
Copy link

Flask-Login has released v0.5.0 on 2020-02-09.

This release has broken some of the decorators (all I have encountered, but not necessarily exclusive to decorators).

File "/usr/local/lib/python3.6/site-packages/flask_security/decorators.py", line 61, in _check_token
    user = _security.login_manager.request_callback(request)
AttributeError: 'LoginManager' object has no attribute 'request_callback'

A more specific version check might be needed:
https://github.com/mattupstate/flask-security/blob/develop/setup.py#L50

For those having the same issue add a fixed dependency to Flask-Login <= 0.5.0
e.g.:

Flask-Login==0.4.1

(0.4.1 was the greatest version < 0.5.0 at the time of writing)

I will check back with more details (and further testing) once I find time and perhaps submit a PR.

@alanhamlett
Copy link
Contributor

Fixed by using the new method name in #858.

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

Successfully merging a pull request may close this issue.

2 participants