Connect nextcloud to Auth0

I’m trying to connect Nextcloud with Auth0 for authentication (OAuth2 / SSO), but I’m running into issues. I’ve followed the documentation and applied the following configurations inside my docker-compose

Nextcloud setup:

docker-compose exec app php occ config:app:set oauth2 provider_name --value=‘Auth0’
docker-compose exec app php occ config:app:set oauth2 client_id --value=‘<client_id>’
docker-compose exec app php occ config:app:set oauth2 client_secret --value=‘<client_secret>’
docker-compose exec app php occ config:app:set oauth2 authorization_url --value=‘<authorize_uri>’
docker-compose exec app php occ config:app:set oauth2 token_url --value=‘<token_url>’

What I’ve done so far

Created an Auth0 application (Regular Web App)

Set the callback URL to:
https:///apps/oauth2/redirect

Verified client_id and client_secret are correct

Tried both /authorize and /authorize?response_type=code for the authorization_url

Token URL set to https://.auth0.com/oauth/token

Issue

After configuring, the Login with Auth0 button not showing up

Question

Has anyone successfully connected Nextcloud + Auth0 using OAuth2?

What’s the correct configuration for authorization_url and token_url with Auth0?

Do I need to configure additional scopes (openid profile email) explicitly in Nextcloud?

Is there a working reference for setting up Auth0 as an OAuth2 provider in Nextcloud?

Any help, working config samples, or troubleshooting steps would be greatly appreciated

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.