Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIDC provider details cannot be changed #285

Open
zmberber opened this issue Jul 18, 2024 · 2 comments
Open

OIDC provider details cannot be changed #285

zmberber opened this issue Jul 18, 2024 · 2 comments

Comments

@zmberber
Copy link

zmberber commented Jul 18, 2024

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.

  • Nextcloud 29
  • oidc_login v3.1.1
@zmberber
Copy link
Author

zmberber commented Jul 18, 2024

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

  • I deleted the relevant rows in the public.oc_appconfig table
    • This probably didn't do anything. Installing and reinstalling etc just added entries for the app being enabled, but the well_known attribute was not then added again
  • I did stuff with all of my services until it finally restarted enough stuff adjusted it.
    • On my installation (NixOS), there is a service nextcloud-update-db.service, but this sadly didn't do much
    • The service phpfpm-nextcloud.service was also restarted when I did reinstallation stuff. I am not sure if this was it, but maybe this was what finally solved my problem

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
Copy link

g0ha1 commented Aug 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants