qfieldcloud icon indicating copy to clipboard operation
qfieldcloud copied to clipboard

Default homepage (/admin) does not use allauth

Open tobast opened this issue 5 months ago • 0 comments
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

  1. Deploy a fresh instance
  2. Go to its root url
  3. Add an authentication provider in SOCIALACCOUNT_PROVIDERS (which may be a dummy one for this test)
  4. Get redirected to /admin
  5. 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

tobast avatar Jun 12 '25 15:06 tobast