Skip to content

Commit 3b2fe32

Browse files
committed
fix: do not error when groups unable to retrieve
1 parent dfe9b53 commit 3b2fe32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

providers/ms_entra_id.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ func (p *MicrosoftEntraIDProvider) addGraphGroupsToSession(ctx context.Context,
132132
UnmarshalSimpleJSON()
133133

134134
if err != nil {
135-
return fmt.Errorf("invalid response from microsoft graph, no groups added to session: %v", err)
135+
logger.Errorf("invalid response from microsoft graph, no groups added to session: %v", err)
136+
return nil
136137
}
137138
reqGroups := response.Get("value").MustArray()
138139

0 commit comments

Comments
 (0)