You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needed by dyweb/Ayi#77, currently using the oauth2 package as example in go-github, however, we only use the token, we don't obtain it, the oauth2 package also introduced dependencies like appengine, protobuf
- add example label config from @at15
- introduce golang.org/x/oauth2 for using go-github
- might write a http transport wrapper in gommon to avoid this
dependency, go-github just need a http client that can inject header
dyweb/gommon#70
- the label is hard coded to at15/papers-i-read
Needed by dyweb/Ayi#77, currently using the oauth2 package as example in go-github, however, we only use the token, we don't obtain it, the oauth2 package also introduced dependencies like appengine, protobuf
The implementation in oauth2 is a
Transport
struct, which modifies header before passing requests to underlying http transport https://github.com/golang/oauth2/blob/master/transport.go NOTE: its token source also handle token expireWe can have more a general implementation, a transport which allows modifying header etc.
The text was updated successfully, but these errors were encountered: