Not able to update the OIDC provider url even after updating the config file
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.
In case you need a quickfix for this one: You need an admin account without OIDC for this to work (I guess).
- Changed provider url in config.
- Disabled my auto redirect to provider in config, so I was able to login with my normal nextcloud admin account.
- Disabled the app.
- Shutdown nextcloud.
- Connect to mysql Database of nextcloud.
- 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) - Started Nextcloud.
- Activated Plugin.
Works just fine now with my new set provider url :)
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.
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
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.