From 325a9482ac9731675d10de4121777cf81812fad5 Mon Sep 17 00:00:00 2001 From: Simon Skoczylas Date: Wed, 11 Sep 2024 22:12:41 +0200 Subject: [PATCH] Fix naming --- internal/server/handler/forwardauth/forwardauth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/server/handler/forwardauth/forwardauth.go b/internal/server/handler/forwardauth/forwardauth.go index 7dfac62..4f4e024 100644 --- a/internal/server/handler/forwardauth/forwardauth.go +++ b/internal/server/handler/forwardauth/forwardauth.go @@ -167,12 +167,12 @@ func (h *Handler) validateAndCreateAuthCookie(code string, state string, forward Username: authSession.Username, } h.loginSessionManager.StartSession(loginSession) - authCookie, authCookieError := h.cookieManager.CreateForwardAuthCookie(authSession.Username, loginSession.Id) - if authCookieError != nil { + forwardAuthCookie, forwardAuthCookieError := h.cookieManager.CreateForwardAuthCookie(authSession.Username, loginSession.Id) + if forwardAuthCookieError != nil { return nil, nil, false } - return &authCookie, forwardSession, true + return &forwardAuthCookie, forwardSession, true } return nil, nil, false }