Skip to content

Commit

Permalink
Fix renew of token V2
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Mar 13, 2024
1 parent 884ff39 commit 134f119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsuru/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func roundTripperAndTokenProvider() (http.RoundTripper, config.TokenProvider) {
}

teamToken := config.ReadTeamToken()
if tokenV2 != nil && tokenV2.Scheme == "oidc" && teamToken != "" {
if tokenV2 != nil && tokenV2.Scheme == "oidc" && teamToken == "" {
oidcTokenSource := auth.NewOIDCTokenSource(tokenV2)
tokenProvider := &auth.OIDCTokenProvider{OAuthTokenSource: oidcTokenSource}

Expand Down

0 comments on commit 134f119

Please sign in to comment.