Don't fail on missing IDtoken in GetGroups

This commit is contained in:
Lukasz Leszczuk 2019-09-10 16:42:56 +02:00
parent 1f7426bd18
commit 7b80d0869a

View File

@ -155,7 +155,7 @@ func (p *AzureProvider) GetGroups(s *sessions.SessionState, f string) (map[strin
// This option is available through ARM template only. // 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 // For details refer to: https://docs.microsoft.com/pl-pl/azure/active-directory/develop/reference-app-manifest
if s.IDToken == "" { if s.IDToken == "" {
return map[string]string{}, errors.New("missing id token") return map[string]string{}, nil
} }
type GroupClaims struct { type GroupClaims struct {