From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Bruno Friedmann <bruno(at)ioda-net(dot)ch> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: flask-login 0.4.0 has changed functions |
Date: | 2016-11-10 12:07:39 |
Message-ID: | CA+OCxoyZx67+DxGCXJ5Q=yB1YJ7=i5aYeROWCHFt-eiqe+ktRw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi
On Thu, Nov 10, 2016 at 10:15 AM, Bruno Friedmann <bruno(at)ioda-net(dot)ch> wrote:
> With version 0.4.0 installed ( system wide )
>
> Traceback (most recent call last):
> File "web/pgAdmin4.py", line 46, in <module>
> app = create_app()
> File "/ioda/home/bruno/git/pgadmin4/web/pgadmin/__init__.py", line 247, in
> create_app
> security.init_app(app)
> File "/usr/lib/python3.5/site-packages/flask_security/core.py", line 435, in
> init_app
> anonymous_user=anonymous_user)
> File "/usr/lib/python3.5/site-packages/flask_security/core.py", line 268, in
> _get_state
> login_manager=_get_login_manager(app, anonymous_user),
> File "/usr/lib/python3.5/site-packages/flask_security/core.py", line 226, in
> _get_login_manager
> lm.token_loader(_token_loader)
> AttributeError: 'LoginManager' object has no attribute 'token_loader'
>
> Changelog of flask-login
>
> + BREAKING: The `login_manager.token_handler` function,
> `get_auth_token` method on the User class, and the
> `utils.make_secure_token` utility function have been removed to
> prevent users from creating insecure auth implementations.
> Use the `Alternative Tokens` example from the docs instead. #291
>
> So the code has to be updated to no more use insecure auth ...
> ;-)
Not ours :-). If you upgrade flask-security to the latest version it
should be fine.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2016-11-10 12:48:42 | pgAdmin 4 commit: Fix TypeError. |
Previous Message | Bruno Friedmann | 2016-11-10 10:15:54 | flask-login 0.4.0 has changed functions |