From 7b80d0869a582f73b766224a95bb42151335a904 Mon Sep 17 00:00:00 2001 From: Lukasz Leszczuk Date: Tue, 10 Sep 2019 16:42:56 +0200 Subject: [PATCH] Don't fail on missing IDtoken in GetGroups --- providers/azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/azure.go b/providers/azure.go index a0afed2..cc9c455 100644 --- a/providers/azure.go +++ b/providers/azure.go @@ -155,7 +155,7 @@ func (p *AzureProvider) GetGroups(s *sessions.SessionState, f string) (map[strin // This option is available through ARM template only. // For details refer to: https://docs.microsoft.com/pl-pl/azure/active-directory/develop/reference-app-manifest if s.IDToken == "" { - return map[string]string{}, errors.New("missing id token") + return map[string]string{}, nil } type GroupClaims struct {