Identify error as failure to retrieve refresh token
This commit is contained in:
parent
8b344fe4d3
commit
f6077083c9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue