Skip to content
Snippets Groups Projects
Commit 5d0eae68 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

fix user IdP lookup

parent e16cdcc8
No related branches found
No related tags found
No related merge requests found
......@@ -280,9 +280,15 @@ sub req_select_sp {
# if user is authenticated, and its IdP is found in metadata,
# push all entities with the same organization URL in a list
if ($ENV{HTTP_SHIB_IDENTITY_PROVIDER}) {
my $idp = $metadata->parse(entityid => $ENV{HTTP_SHIB_IDENTITY_PROVIDER});
my $idps = $metadata->parse(id => $ENV{HTTP_SHIB_IDENTITY_PROVIDER});
my $idp = $idps->[0];
if ($idp) {
my $organization = $idp->organization();
$self->{logger}->debugf(
"idp %s found in federation %s metadata",
$ENV{HTTP_SHIB_IDENTITY_PROVIDER},
$federation
);
my $organization = $idp->{organization};
push @self_entities,
grep { $_->{organization} eq $organization }
@$entities;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment