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

Keyclock X redirect page not found

Open arozmarin opened this issue 2 years ago • 4 comments

Hi guys,

I"m testing new keyclick 17 and new redirect url is different than old, new url 'https://keycloak.example.com/realms/YOUR_REALM' old url 'https://keycloak.example.com/auth/realms/YOUR_REALM'. that means new keyclick don't have 'auth' in url. I change url in config but Nextcloud still redirect to old URL. I tried to disable "OpenID Connect Login" and back enable, remove and reinstall and also reboot server and nothing helped.

Where or how should I change url that will be redirect to new URL.

thanks

arozmarin avatar Mar 18 '22 00:03 arozmarin

I bumped into the same issue today.

It looks like this plugin caches the .well-known page in the database. Removing the rows containing last_updated_well_known and well-known from the oc_appconfig table in the database solves it.

Hopefully #157 will prevent this problem in the future.

Whhoesj avatar Mar 25 '22 22:03 Whhoesj

thanks for info, I manage to fix too.

arozmarin avatar Mar 28 '22 23:03 arozmarin

the provided workaround works. But I would really like to see an occ action like "maintenance:update-oidc-wellknown" or something alike

trensetim avatar Apr 23 '22 07:04 trensetim

managed it by doing

docker exec -it nextcloud-postgres psql -U nextcloud delete from oc_appconfig where appid='oidc_login' and (configkey='well-known' or configkey='last_updated_well_known');

trensetim avatar Apr 23 '22 07:04 trensetim

I close this ticket because there is already #157

azmeuk avatar Oct 19 '22 10:10 azmeuk