File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ func newTokenProvider() *tokenProvider {
55
55
ClientID : cluster .SASL .ClientID ,
56
56
ClientSecret : cluster .SASL .ClientSecret ,
57
57
TokenURL : cluster .SASL .TokenURL ,
58
+ Scopes : cluster .SASL .Scopes ,
58
59
},
59
60
staticToken : false ,
60
61
}
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ clusters:
7
7
clientID : my_client_oauth
8
8
clientSecret : my_secret_oauth
9
9
tokenURL : https//some.token.endpoint.com/token
10
+ scopes :
11
+ - scope1
12
+ - scope2
10
13
TLS :
11
14
insecure : true
12
15
security-protocol : SASL_SSL
Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ import (
10
10
)
11
11
12
12
type SASL struct {
13
- Mechanism string `yaml:"mechanism"`
14
- Username string `yaml:"username"`
15
- Password string `yaml:"password"`
16
- ClientID string `yaml:"clientID"`
17
- ClientSecret string `yaml:"clientSecret"`
18
- TokenURL string `yaml:"tokenURL"`
19
- Token string `yaml:"token"`
20
- Version int16 `yaml:"version"`
13
+ Mechanism string `yaml:"mechanism"`
14
+ Username string `yaml:"username"`
15
+ Password string `yaml:"password"`
16
+ ClientID string `yaml:"clientID"`
17
+ ClientSecret string `yaml:"clientSecret"`
18
+ TokenURL string `yaml:"tokenURL"`
19
+ Scopes []string `yaml:"scopes"`
20
+ Token string `yaml:"token"`
21
+ Version int16 `yaml:"version"`
21
22
}
22
23
23
24
type TLS struct {
You can’t perform that action at this time.
0 commit comments