Merge pull request #16241 from liangyuanpeng/backport_13577_3.5

[3.5] Backport #13577 to 3.5
This commit is contained in:
Benjamin Wang
2023-07-14 16:08:51 +01:00
committed by GitHub
3 changed files with 50 additions and 1 deletions

View File

@@ -264,6 +264,7 @@ func (c *Client) getToken(ctx context.Context) error {
resp, err := c.Auth.Authenticate(ctx, c.Username, c.Password)
if err != nil {
if err == rpctypes.ErrAuthNotEnabled {
c.authTokenBundle.UpdateAuthToken("")
return nil
}
return err