From 6f1c16f033cf7cc655bce9c9a169cf5c85a7ee46 Mon Sep 17 00:00:00 2001 From: Lukasz Leszczuk Date: Tue, 20 Aug 2019 19:36:01 +0200 Subject: [PATCH] Formatting fixes --- providers/azure.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/providers/azure.go b/providers/azure.go index 30ad6e9..fdaf0a5 100644 --- a/providers/azure.go +++ b/providers/azure.go @@ -3,11 +3,12 @@ package providers import ( "errors" "fmt" - "github.com/dgrijalva/jwt-go" "net/http" "net/url" "strings" + "github.com/dgrijalva/jwt-go" + "github.com/bitly/go-simplejson" "github.com/pusher/oauth2_proxy/pkg/apis/sessions" "github.com/pusher/oauth2_proxy/pkg/logger" @@ -326,9 +327,9 @@ func (p *AzureProvider) SetGroupsExemption(exemptions []string) { func (p *AzureProvider) ValidateGroupWithSession(s *sessions.SessionState) bool { if len(p.PermittedGroups) != 0 { - for groupName, groupId := range p.PermittedGroups { + for groupName, groupID := range p.PermittedGroups { logger.Printf("ValidateGroup: %v", groupName) - if strings.Contains(s.Groups, groupId) { + if strings.Contains(s.Groups, groupID) { return true } }