mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Update vendor dependencies
This commit is contained in:
parent
34a3fe426b
commit
459bb4531f
747 changed files with 89857 additions and 39711 deletions
7
vendor/golang.org/x/oauth2/clientcredentials/clientcredentials.go
generated
vendored
7
vendor/golang.org/x/oauth2/clientcredentials/clientcredentials.go
generated
vendored
|
@ -82,7 +82,9 @@ type tokenSource struct {
|
|||
func (c *tokenSource) Token() (*oauth2.Token, error) {
|
||||
v := url.Values{
|
||||
"grant_type": {"client_credentials"},
|
||||
"scope": internal.CondVal(strings.Join(c.conf.Scopes, " ")),
|
||||
}
|
||||
if len(c.conf.Scopes) > 0 {
|
||||
v.Set("scope", strings.Join(c.conf.Scopes, " "))
|
||||
}
|
||||
for k, p := range c.conf.EndpointParams {
|
||||
if _, ok := v[k]; ok {
|
||||
|
@ -92,6 +94,9 @@ func (c *tokenSource) Token() (*oauth2.Token, error) {
|
|||
}
|
||||
tk, err := internal.RetrieveToken(c.ctx, c.conf.ClientID, c.conf.ClientSecret, c.conf.TokenURL, v)
|
||||
if err != nil {
|
||||
if rErr, ok := err.(*internal.RetrieveError); ok {
|
||||
return nil, (*oauth2.RetrieveError)(rErr)
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
t := &oauth2.Token{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue