From 6fee6cd6e3e3d054ba5f73c84709ca297c5ad99e Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 27 Oct 2025 16:45:08 +0000 Subject: [PATCH] appview/oauth: overload oauth identity directory Change-Id: svxqqzsxxkornvxytrxqurqkurnulwys we invalidate resolutions in our ingester, but the oauth SDK seems to bring its own directory! this changeset shares them instead. thanks to nel.pet for the hint. Signed-off-by: oppiliappan --- appview/oauth/oauth.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appview/oauth/oauth.go b/appview/oauth/oauth.go index 78ee421f..f81500bc 100644 --- a/appview/oauth/oauth.go +++ b/appview/oauth/oauth.go @@ -58,8 +58,11 @@ func New(config *config.Config, ph posthog.Client, db *db.DB, enforcer *rbac.Enf sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret)) + clientApp := oauth.NewClientApp(&oauthConfig, authStore) + clientApp.Dir = res.Directory() + return &OAuth{ - ClientApp: oauth.NewClientApp(&oauthConfig, authStore), + ClientApp: clientApp, Config: config, SessStore: sessStore, JwksUri: jwksUri, -- 2.43.0