Skip to content

Commit bfb622a

Browse files
committed
fix: add mandatory scopes for OAuth2
Signed-off-by: Romain Beuque <[email protected]>
1 parent 18be085 commit bfb622a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ovh/configuration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ func (c *Client) loadConfig(endpointName string) error {
159159
ClientID: c.ClientID,
160160
ClientSecret: c.ClientSecret,
161161
TokenURL: tokensURLs[c.endpoint],
162+
Scopes: []string{"all"},
162163
}
163164

164165
c.oauth2TokenSource = conf.TokenSource(context.Background())

0 commit comments

Comments
 (0)