From 3088e308888d2da54be0743890a01cad9564d472 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 28 Feb 2022 17:23:07 +0100 Subject: [PATCH] GetGroup take IDP attribute into account in json driver --- pkg/group/manager/json/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/group/manager/json/json.go b/pkg/group/manager/json/json.go index ad4a425dd6..a5a976a287 100644 --- a/pkg/group/manager/json/json.go +++ b/pkg/group/manager/json/json.go @@ -89,7 +89,7 @@ func New(m map[string]interface{}) (group.Manager, error) { func (m *manager) GetGroup(ctx context.Context, gid *grouppb.GroupId) (*grouppb.Group, error) { for _, g := range m.groups { - if g.Id.GetOpaqueId() == gid.OpaqueId || g.GroupName == gid.OpaqueId { + if (g.Id.GetOpaqueId() == gid.OpaqueId || g.GroupName == gid.OpaqueId) && (gid.Idp == "" || gid.Idp == g.Id.GetIdp()) { return g, nil } }