aleph
aleph copied to clipboard
FEATURE: authlib 1.x (breaking changes)
Is your feature request related to a problem? Please describe.
The latest version of authlib (1.21.1) tested in 3.15.1-rc1 doesn't quite work with OAuth configured because of breaking changes in the API:
File "/aleph/aleph/views/sessions_api.py", line 101, in oauth_callback
oauth.provider.framework.set_session_data(request, "state", state.get("state"))
AttributeError: 'FlaskIntegration' object has no attribute 'set_session_data'"
Describe the solution you'd like Check all items from the changelog and this gist to make the latest version of authlib work.
Describe alternatives you've considered
For the moment the latest version of authlib is 0.15.5
Additional context
Hi, it's still actual problem on 3.15.6