devilry / trix2

Next generation Trix. Detailed task control and statistics app for better learning outcome.
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

django-allauth 0.60 compatibility #147

Closed torgeirl closed 6 months ago

torgeirl commented 6 months ago

Login with Trix 4.1.0 as of bac3ced01dcd5006225d3c93eb6ae52a8776fc1c (dev build) + django-allauth 0.60 lands the user on an error template:

trix-4 1 0_login-failure

It does not yield a HTTP 500 and the login itself does work (ie. manually navigating to the front page your are logged in).

It does not happen with django-allauth 0.59.*, and it does not happen with Trix 4.0.0 + django-allauth 0.60. For all scenarios, the settingSOCIALACCOUNT_OPENID_CONNECT_URL_PREFIX = '' has been provided (see Allauth's changelog for details).

It might be related to #145.

Levijatan commented 6 months ago

I could not reproduce this error, but I have done some cleanup that might help in ae0d939. The SOCIALACCOUNT_OPENID_CONNECT_URL_PREFIX = '' should not have any effect since the url gets fetched directly from the provider. But if you could run a python manage.py showurls and see what the dataporten_login view url is set to with and without SOCIALACCOUNT_OPENID_CONNECT_URL_PREFIX?