Skip to content

Commit

Permalink
revert condition
Browse files Browse the repository at this point in the history
Signed-off-by: Evangelos Skopelitis <[email protected]>
  • Loading branch information
skoeva committed Jun 18, 2024
1 parent 2feb5ab commit cf64c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/cmd/headlamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,8 @@ func (c *HeadlampConfig) OIDCTokenRefreshMiddleware(next http.Handler) http.Hand
}

// skip if cluster is not using OIDC auth
oidcAuthConfig, _ := kContext.OidcConfig()
if oidcAuthConfig == nil {
oidcAuthConfig, err := kContext.OidcConfig()
if err != nil {
next.ServeHTTP(w, r)
return
}
Expand Down

0 comments on commit cf64c46

Please sign in to comment.