TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.35k stars 563 forks source link

Social sign up does not use correct URL in text #3179

Closed zodac closed 3 months ago

zodac commented 3 months ago

Tandoor Version

1.5.17

Setup

Docker / Docker-Compose

Reverse Proxy

Apache2

Other

No response

Bug description

This is a purely visual issue, the flows are working fine.

When I sign up to create an account in Tandoor using social authentication (I am using Authentik, and the openid_connect provider), once I have successfully signed in and am about to create an account, the sign up page references the website name as example.com rather than the actual domain.

image

Can the URL be picked up from somewhere, or is there an environment variable I could set to have this display the correct URL?

Thanks!

Relevant logs

This is the snippet from my docker-compose.yml file defining the social authentication:

...
SOCIAL_PROVIDERS: "allauth.socialaccount.providers.openid_connect"
SOCIALACCOUNT_PROVIDERS: |
  {
    "openid_connect": {
      "SERVERS": [
        {
          "id": "authentik",
          "name": "Authentik",
          "server_url": "authentik_url",
          "token_auth_method": "client_secret_basic",
          "APP": {
            "client_id": "client_id",
            "secret": "client_secret"
          }
        }
      ]
    }
  }
REMOTE_USER_AUTH: "1"
SOCIAL_DEFAULT_ACCESS: "1"
SOCIAL_DEFAULT_GROUP: "guest"
...
smilerz commented 3 months ago

Duplicate #2736

zodac commented 3 months ago

Is there an environment variable that can set this value directly, or can it only be done through the admin UI?

smilerz commented 3 months ago

No.