From 8b344fe4d3cd329643e50f1e33d2342bc723c83d Mon Sep 17 00:00:00 2001
From: Joel Speed <Joel.speed@hotmail.co.uk>
Date: Fri, 10 May 2019 15:31:50 +0100
Subject: [PATCH] Fix Refresh comment

---
 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 cdb3ff55..0abc0bc4 100644
--- a/connector/oidc/oidc.go
+++ b/connector/oidc/oidc.go
@@ -208,7 +208,7 @@ func (c *oidcConnector) HandleCallback(s connector.Scopes, r *http.Request) (ide
 	return c.createIdentity(r.Context(), identity, token)
 }
 
-// Refresh is implemented for backwards compatibility, even though it's a no-op.
+// Refresh is used to refresh a session with the refresh token provided by the IdP
 func (c *oidcConnector) Refresh(ctx context.Context, s connector.Scopes, identity connector.Identity) (connector.Identity, error) {
 	t := &oauth2.Token{
 		RefreshToken: string(identity.ConnectorData),
-- 
GitLab