RegisterBrokenAuthHeaderProvider registers an OAuth2 server identified by the tokenURL prefix as an OAuth2 implementation which doesn't support the HTTP Basic authentication scheme to authenticate with the authorization server. Once a server is registered, credentials (client_id and client_secret) will be passed as query parameters rather than being present in the Authorization header. See https://code.google.com/p/goauth2/issues/detail?id=31 for background.
// Hack to enable oauth2 access in older GHE oauth2.RegisterBrokenAuthHeaderProvider(remote.URL) return remote, nil }
RegisterBrokenAuthHeaderProvider is referenced in 1 repositorygithub.com/drone/drone
- 1 reference in remote/github/github.go