From f6077083c91ae9b99ebef99eb2bf56e345313557 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Wed, 25 Sep 2019 21:12:20 +0100 Subject: [PATCH] Identify error as failure to retrieve refresh token --- connector/oidc/oidc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/oidc/oidc.go b/connector/oidc/oidc.go index 0abc0bc4..df849093 100644 --- a/connector/oidc/oidc.go +++ b/connector/oidc/oidc.go @@ -216,7 +216,7 @@ func (c *oidcConnector) Refresh(ctx context.Context, s connector.Scopes, identit } token, err := c.oauth2Config.TokenSource(ctx, t).Token() 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)