Skip to content

Commit

Permalink
fix: add mandatory scopes for OAuth2
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com>
  • Loading branch information
rbeuque74 committed Apr 19, 2024
1 parent 18be085 commit bfb622a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovh/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit bfb622a

Please sign in to comment.