Use ListOptions for parameters instead of functional options
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -60,6 +60,7 @@ type oauth2Config struct {
|
||||
}
|
||||
|
||||
func oauth2Transport(c oauth2Config) *oauth2.Transport {
|
||||
// todo: use oauth2.Config.PasswordCredentialsToken
|
||||
params := url.Values{
|
||||
"grant_type": {"password"},
|
||||
"username": {c.username},
|
||||
|
||||
Reference in New Issue
Block a user