From dc99e9e10b0e3131ca280fd1bc952ee52c0769bf Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 11 Aug 2023 14:58:47 +0200 Subject: [PATCH] [bugfix] Fix using wrong key for clientID during oauth callback (#2101) --- internal/api/auth/callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/auth/callback.go b/internal/api/auth/callback.go index 6a6eecd8c..97b3ae279 100644 --- a/internal/api/auth/callback.go +++ b/internal/api/auth/callback.go @@ -107,7 +107,7 @@ func (m *Module) CallbackGETHandler(c *gin.Context) { return } - app, err := m.db.GetApplicationByClientID(c.Request.Context(), sessionClientID) + app, err := m.db.GetApplicationByClientID(c.Request.Context(), clientID) if err != nil { m.clearSession(s) safe := fmt.Sprintf("application for %s %s could not be retrieved", sessionClientID, clientID)