pulsejet / nextcloud-oidc-login

Nextcloud login via a single OpenID Connect 1.0 provider
https://apps.nextcloud.com/apps/oidc_login
GNU Affero General Public License v3.0
219 stars 59 forks source link

OIDC provider details cannot be changed #285

Open zmberber opened 1 month ago

zmberber commented 1 month ago

When I try to set oidc_login_provider_url to something different than I have had before in config.php. However, the login link redirection on my Nextcloud when I try to log in never changes. I have also checked the Nextcloud postgres database (via a dump), and I see the old values

INSERT INTO public.oc_appconfig VALUES ('oidc_login', 'well-known', '{"issuer":"https://myoldkeycloakprovider.com:8443/realms/myrealm","authorization_endpoint":"https://myoldkeycloakprovider.com:8443/realms/myrealm/protocol/openid-connect/auth","token_endpoint":"https://myoldkeycloakprovider.com:8443/realms/myrealm/protocol/openid-connect/token", [etc.]

Here https://myoldkeycloakprovider.com is my old SSO provider that I do not want to use anymore.

I have grepped everything I have, in particular the config.php, and there is no mention of the old provider link or anything similar. The only place that I find any mention of this is the database.

I have tried uninstalling and installing the app, I have restarted the server that hosts Nextcloud, I have changed other settings (including oidc_login settings) in config.php to kind of shake up the system so that it "does things". Some of it changes things, some of it doesn't change anything at all.

zmberber commented 1 month ago

Ok I got it to work, this is what I did:

Possibly I should close this issue, not sure if this is just a classic Nextcloud quirk, or if the App can be adjusted so that this works better (such as it doing this when installed/enabled or something)

g0ha1 commented 2 weeks ago

Hi, same problems, same NC and app version. I can delete well-known by sudo -u www-data php /var/www/nextcloud/occ config:app:delete oidc_login well-known but then app not working, only manual add works