Skip to content

Commit

Permalink
Update the cert map on successful non interactive login
Browse files Browse the repository at this point in the history
Signed-off-by: Vui Lam <[email protected]>
  • Loading branch information
vuil committed Oct 9, 2024
1 parent 58aba46 commit d33d4b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/auth/common/login_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func (h *TanzuLoginHandler) DoLogin() (*Token, error) {
if h.refreshToken != "" {
token, err = h.getTokenWithRefreshToken()
if err == nil || h.suppressInteractive {
// non interactive login mode should update the cert map as well
// before returning.
if err == nil && h.suppressInteractive {
h.updateCertMap()
}
return token, err
}
}
Expand Down

0 comments on commit d33d4b7

Please sign in to comment.