Skip to content

Commit

Permalink
Merge pull request #81 from ovh/oauth2
Browse files Browse the repository at this point in the history
fix: add mandatory scopes for OAuth2
  • Loading branch information
amstuta authored Apr 19, 2024
2 parents 18be085 + bfb622a commit 3b83768
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 3b83768

Please sign in to comment.