nextcloud-oidc-login icon indicating copy to clipboard operation
nextcloud-oidc-login copied to clipboard

Not able to update the OIDC provider url even after updating the config file

Open marouamghar opened this issue 2 years ago • 4 comments

The OIDC client is stuck on an old provider url. Even when updating oidc_login_provider_url in the config.php and restarting nextcloud, the container picks the new config, but the client still uses the old url.

marouamghar avatar Apr 01 '23 01:04 marouamghar

In case you need a quickfix for this one: You need an admin account without OIDC for this to work (I guess).

  1. Changed provider url in config.
  2. Disabled my auto redirect to provider in config, so I was able to login with my normal nextcloud admin account.
  3. Disabled the app.
  4. Shutdown nextcloud.
  5. Connect to mysql Database of nextcloud.
  6. Deleted all appconfig for this app with: DELETE FROM oc_appconfig WHERE appid='oidc_login'; (in that table the data was cached or saved with the old provider urls)
  7. Started Nextcloud.
  8. Activated Plugin.

Works just fine now with my new set provider url :)

da-wilky avatar Apr 03 '23 23:04 da-wilky

Confirming that this procedure is necessary in order to reconfigure the URL. Changes are not picked up even at reboot of container running the Nextcloud instance. Tested on nextcloud 27.0.1, oidc_login 2.6.0.

cfenell avatar Aug 03 '23 11:08 cfenell

For an even quicker quick-fix in a containerized deployment, shell into your nextcloud container after changing its config file and then run these commands:

runuser --user www-data -- ./occ config:app:delete oidc_login well-known
runuser --user www-data -- ./occ config:app:delete oidc_login last_updated_well_known

lorenzo-w avatar Aug 22 '23 15:08 lorenzo-w

For an even quicker quick-fix in a containerized deployment, shell into your nextcloud container after changing its config file and then run these commands:

runuser --user www-data -- ./occ config:app:delete oidc_login well-known
runuser --user www-data -- ./occ config:app:delete oidc_login last_updated_well_known

I can confirm, this solution works.

Trinnik avatar Oct 19 '23 13:10 Trinnik