From e7942ec892689a2111cc056d29b825e1e42e682f Mon Sep 17 00:00:00 2001
From: decentral1se <lukewm@riseup.net>
Date: Tue, 19 Oct 2021 11:52:29 +0200
Subject: [PATCH] docs: add trick to kill NC OIDC cache

---
 docs/app-config-guide.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/docs/app-config-guide.md b/docs/app-config-guide.md
index 94a7cbc..a09fd54 100644
--- a/docs/app-config-guide.md
+++ b/docs/app-config-guide.md
@@ -47,6 +47,13 @@ You can use [this trick](https://janikvonrotz.ch/2020/10/20/openid-connect-with-
 
 You might also need the following "Why is my synchronisation.." change if you see an error `'redirect_uri' is invalid`.
 
+If you ever need to change the realm, you'll need to reset the cache with:
+
+```
+docker exec -u www-data <container-id> php occ config:app:delete oidc_login last_updated_well_known
+docker exec -u www-data <container-id> php occ config:app:delete oidc_login last_updated_jwks
+```
+
 #### Why is my synchronisation client freezing on the "grant access" step?
 
 Please see [this ticket](https://git.autonomic.zone/coop-cloud/nextcloud/issues/5).