Skip to content

Commit 966b25e

Browse files
author
GitHub User
committed
Fix OIDC token refresh issue by correcting typo in OIDCTokenRefreshMiddleware function
1 parent baa4118 commit 966b25e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/cmd/headlamp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ func (c *HeadlampConfig) OIDCTokenRefreshMiddleware(next http.Handler) http.Hand
963963
w.Header().Set("X-Authorization", newToken.AccessToken)
964964
}
965965

966+
// Always call the next handler in the chain, even if token refresh failed
966967
next.ServeHTTP(w, r)
967968
})
968969
}

0 commit comments

Comments
 (0)