Open jonaskohl opened 1 month ago
I also tried putting that config into my .env
file like this:
# ...
SOCIALACCOUNT_PROVIDERS='{ "nextcloud": { "APPS": [ { "client_id": "#REDACTED", "secret": "#REDACTED", "settings": { "server": "https://my-redacted-nextcloud-address/", } } ] }}'
But it results in the exact same behavior
don't enclose it in quotes
I removed the quotes like this:
SOCIALACCOUNT_PROVIDERS={ "nextcloud": { "APPS": [ { "client_id": "#REDACTED", "secret": "#REDACTED", "settings": { "server": "https://my-redacted-nextcloud-address/" } } ] }}
But I still get thrown to nextcloud.example.org
I removed the quotes like this:
SOCIALACCOUNT_PROVIDERS={ "nextcloud": { "APPS": [ { "client_id": "#REDACTED", "secret": "#REDACTED", "settings": { "server": "https://my-redacted-nextcloud-address/" } } ] }}
But I still get thrown to
nextcloud.example.org
and you rebuilt the container after making the change?
Yes, I rebuilt the container with docker compose up -d --force-recreate --build
can you remove the trailing slash in the url configuration? if that doesn't work I'd suggest joining the discord and see if anyone has a working configuration.
This works for me:
SOCIALACCOUNT_PROVIDERS={"nextcloud":{"SERVER":"https://mynextcould.xyz"}}
Maybe this structure is deprecated, as I don't see it in the Allauth docs, but as of Tandoor 1.5.14 it's working well.
This works for me:
SOCIALACCOUNT_PROVIDERS={"nextcloud":{"SERVER":"https://mynextcould.xyz"}}
Maybe this structure is deprecated, as I don't see it in the Allauth docs, but as of Tandoor 1.5.14 it's working well.
Doing this in addition to configuring the provider inside of the Django admin panel (while leaving the Settings
field in that admin panel blank/the default value) finally solves the problem.
However, this does not seem like the intended behaviour. It's at least not the documented behaviour
Here's where the new structure was introduced: https://docs.allauth.org/en/latest/release-notes/recent.html#id49
Issue
I'm trying to add login via Nextcloud to my Tandoor instance. I enabled the Nextcloud provider in my
.env
file viaand configured a new Social Application via the Django admin. I added the client ID and secret and added the following text to the Settings input:
But when I click Sign in using Nextcloud and then Continue, I always get redirected to
https://nextcloud.example.org/
instead ofhttps://my-redacted-nextcloud-address/
. It seems that Tandoor/django-allauth doesn't respect theSERVER
field inside the settings ashttps://nextcloud.example.org/
is the default fallback value. Am I misunderstanding the configuration process or is this a bug?Tandoor Version
1.5.18
OS Version
Debian 12.6
Setup
Docker / Docker-Compose
Reverse Proxy
Others (please state below)
Other
nginx (Plain old nginx, not nginx proxy manager)
Environment file
Docker-Compose file
Relevant logs
No response