From 235ae9c3c44df64231ba70494bc4fd3c6a9f3bf0 Mon Sep 17 00:00:00 2001
From: Eric Chiang <eric.chiang.m@gmail.com>
Date: Mon, 8 Aug 2016 19:10:32 -0700
Subject: [PATCH] server: update discovery to include offline_access scope

---
 server/handlers.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/handlers.go b/server/handlers.go
index 76bdbc5f..b8c848c3 100644
--- a/server/handlers.go
+++ b/server/handlers.go
@@ -82,10 +82,10 @@ func (s *Server) handleDiscovery(w http.ResponseWriter, r *http.Request) {
 		ResponseTypes: []string{"code"},
 		Subjects:      []string{"public"},
 		IDTokenAlgs:   []string{string(jose.RS256)},
-		Scopes:        []string{"openid", "email", "profile"},
+		Scopes:        []string{"openid", "email", "profile", "offline_access"},
 		AuthMethods:   []string{"client_secret_basic"},
 		Claims: []string{
-			"aud", "email", "email_verified", "exp", "family_name", "given_name",
+			"aud", "email", "email_verified", "exp",
 			"iat", "iss", "locale", "name", "sub",
 		},
 	}
-- 
GitLab