File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,14 @@ func (a *BasicAuth) String() string {
214214 return fmt .Sprintf ("%s - %s:%s" , a .Name (), a .Username , masked )
215215}
216216
217- // TokenAuth implements the go-git http.AuthMethod and transport.AuthMethod interfaces
217+ // TokenAuth implements an http.AuthMethod that can be used with http transport
218+ // to authenticate with HTTP token authentication (also known as bearer
219+ // authentication).
220+ //
221+ // IMPORTANT: If you are looking to use OAuth tokens with popular servers (e.g.
222+ // GitHub, Bitbucket, GitLab) you should use BasicAuth instead. These servers
223+ // use basic HTTP authentication, with the OAuth token as user or password.
224+ // Check the documentation of your git server for details.
218225type TokenAuth struct {
219226 Token string
220227}
You can’t perform that action at this time.
0 commit comments