···214214 return fmt.Sprintf("%s - %s:%s", a.Name(), a.Username, masked)
215215}
216216217217-// TokenAuth implements the go-git http.AuthMethod and transport.AuthMethod interfaces
217217+// TokenAuth implements an http.AuthMethod that can be used with http transport
218218+// to authenticate with HTTP token authentication (also known as bearer
219219+// authentication).
220220+//
221221+// IMPORTANT: If you are looking to use OAuth tokens with popular servers (e.g.
222222+// GitHub, Bitbucket, GitLab) you should use BasicAuth instead. These servers
223223+// use basic HTTP authentication, with the OAuth token as user or password.
224224+// Check the documentation of your git server for details.
218225type TokenAuth struct {
219226 Token string
220227}