Identify error as failure to retrieve refresh token

This commit is contained in:
Joel Speed 2019-09-25 21:12:20 +01:00
parent 8b344fe4d3
commit f6077083c9
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB

View File

@ -216,7 +216,7 @@ func (c *oidcConnector) Refresh(ctx context.Context, s connector.Scopes, identit
} }
token, err := c.oauth2Config.TokenSource(ctx, t).Token() token, err := c.oauth2Config.TokenSource(ctx, t).Token()
if err != nil { if err != nil {
return identity, fmt.Errorf("oidc: failed to get token: %v", err) return identity, fmt.Errorf("oidc: failed to get refresh token: %v", err)
} }
return c.createIdentity(ctx, identity, token) return c.createIdentity(ctx, identity, token)