Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
f93eb031
Unverified
Commit
f93eb031
authored
6 years ago
by
m0ark
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update MetaLoader.php
Fixing loading behaviour according to the documentation
parent
401cf1d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/metarefresh/lib/MetaLoader.php
+18
-8
18 additions, 8 deletions
modules/metarefresh/lib/MetaLoader.php
with
18 additions
and
8 deletions
modules/metarefresh/lib/MetaLoader.php
+
18
−
8
View file @
f93eb031
...
...
@@ -161,14 +161,24 @@ class sspmod_metarefresh_MetaLoader
$template
=
null
;
if
(
array_key_exists
(
'template'
,
$source
))
$template
=
$source
[
'template'
];
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata1xSP
(),
'shib13-sp-remote'
,
$template
);
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata1xIdP
(),
'shib13-idp-remote'
,
$template
);
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata20SP
(),
'saml20-sp-remote'
,
$template
);
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata20IdP
(),
'saml20-idp-remote'
,
$template
);
$attributeAuthorities
=
$entity
->
getAttributeAuthorities
();
if
(
!
empty
(
$attributeAuthorities
))
{
$this
->
addMetadata
(
$source
[
'src'
],
$attributeAuthorities
[
0
],
'attributeauthority-remote'
,
$template
);
}
if
(
in_array
(
'shib13-sp-remote'
,
$this
->
types
))
{
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata1xSP
(),
'shib13-sp-remote'
,
$template
);
}
if
(
in_array
(
'shib13-idp-remote'
,
$this
->
types
))
{
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata1xIdP
(),
'shib13-idp-remote'
,
$template
);
}
if
(
in_array
(
'saml20-sp-remote'
,
$this
->
types
))
{
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata20SP
(),
'saml20-sp-remote'
,
$template
);
}
if
(
in_array
(
'saml20-idp-remote'
,
$this
->
types
))
{
$this
->
addMetadata
(
$source
[
'src'
],
$entity
->
getMetadata20IdP
(),
'saml20-idp-remote'
,
$template
);
}
if
(
in_array
(
'attributeauthority-remote'
,
$this
->
types
))
{
$attributeAuthorities
=
$entity
->
getAttributeAuthorities
();
if
(
!
empty
(
$attributeAuthorities
))
{
$this
->
addMetadata
(
$source
[
'src'
],
$attributeAuthorities
[
0
],
'attributeauthority-remote'
,
$template
);
}
}
}
$this
->
saveState
(
$source
,
$responseHeaders
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment