From d86377a1e3921d7edf66c0196b42e8a5a3ba8e57 Mon Sep 17 00:00:00 2001 From: "antoine.leveugle" Date: Tue, 1 Aug 2017 15:49:04 +0200 Subject: [PATCH] fix: as the scope are space delimited, split on space to separate the scope list instead of comma --- access.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/access.go b/access.go index 178f0e0..ce5f9df 100644 --- a/access.go +++ b/access.go @@ -263,8 +263,8 @@ func (s *Server) handleAuthorizationCodeRequest(w *Response, r *http.Request) *A } func extraScopes(access_scopes, refresh_scopes string) bool { - access_scopes_list := strings.Split(access_scopes, ",") - refresh_scopes_list := strings.Split(refresh_scopes, ",") + access_scopes_list := strings.Split(access_scopes, " ") + refresh_scopes_list := strings.Split(refresh_scopes, " ") access_map := make(map[string]int)