qfieldcloud
qfieldcloud copied to clipboard
Default homepage (/admin) does not use allauth
trafficstars
What is the bug or the crash? What were your expectations and what actually happened?
On a fresh docker-compose'd install, the home page (page the user is redirected to when hitting the application's root address) is /admin, as of commit 301ee7b. This redirects to the admin site's default login mechanism if the user is not already logged in.
When using social auth providers through Allauth (SOCIALACCOUNT_PROVIDERS var), Allauth is completely bypassed in the process, making users unable to login through a provider unless they are able to guess the correct login URL (/accounts/), then visit the root URL.
Steps to reproduce the issue
- Deploy a fresh instance
- Go to its root url
- Add an authentication provider in
SOCIALACCOUNT_PROVIDERS(which may be a dummy one for this test) - Get redirected to
/admin - Notice the authentication provider is not offered.
Version
244ba21a (HEAD -> master, origin/master, origin/HEAD)
Operating system name
Linux
Operating system version
Debian bookworm
Reinstall QFieldCloud
- [x] I have a fresh install of the latest QFieldCloud version, but the problem persists.
- [x] I have the latest available Docker engine installed on my machine.
- [x] Problem can be reliably reproduced, doesn't happen randomly.
Additional context
No response