fork of go-git with some jj specific features
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1009 from smola/tokenauth-doc

http: improve TokenAuth documentation

authored by

Máximo Cuadros and committed by
GitHub
959dc01f 3033d455

+8 -1
+8 -1
plumbing/transport/http/common.go
··· 214 214 return fmt.Sprintf("%s - %s:%s", a.Name(), a.Username, masked) 215 215 } 216 216 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. 218 225 type TokenAuth struct { 219 226 Token string 220 227 }