Skip to content

Default homepage (/admin) does not use allauth #1259

@tobast

Description

@tobast

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

244ba21 (HEAD -> master, origin/master, origin/HEAD)

Operating system name

Linux

Operating system version

Debian bookworm

Reinstall QFieldCloud

  • I have a fresh install of the latest QFieldCloud version, but the problem persists.
  • I have the latest available Docker engine installed on my machine.
  • Problem can be reliably reproduced, doesn't happen randomly.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions