From bfb622a8a3d44694216b086161f909c96ca9842d Mon Sep 17 00:00:00 2001 From: Romain Beuque <556072+rbeuque74@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:46:08 +0000 Subject: [PATCH] fix: add mandatory scopes for OAuth2 Signed-off-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com> --- ovh/configuration.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ovh/configuration.go b/ovh/configuration.go index 2be8096..5983d2f 100644 --- a/ovh/configuration.go +++ b/ovh/configuration.go @@ -159,6 +159,7 @@ func (c *Client) loadConfig(endpointName string) error { ClientID: c.ClientID, ClientSecret: c.ClientSecret, TokenURL: tokensURLs[c.endpoint], + Scopes: []string{"all"}, } c.oauth2TokenSource = conf.TokenSource(context.Background())