flask-login 0.4.0 has changed functions

Поиск
Список
Период
Сортировка
От Bruno Friedmann
Тема flask-login 0.4.0 has changed functions
Дата
Msg-id 1633807.lypyJtJFtT@qt-kt.labaroche.ioda.net
обсуждение исходный текст
Ответы Re: flask-login 0.4.0 has changed functions  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
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 ...
;-)


--

Bruno Friedmann
 Ioda-Net Sàrl www.ioda-net.ch
 Bareos Partner, openSUSE Member, fsfe fellowship
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot




В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Navnath Gadakh
Дата:
Сообщение: Re: PATCH: arguments of Trigger function was not displaying properly (pgAdmin4)
Следующее
От: Dave Page
Дата:
Сообщение: Re: flask-login 0.4.0 has changed functions