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
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
11e3e43b
Commit
11e3e43b
authored
3 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Process logout Extensions
parent
d78a7223
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/saml/docs/sp.md
+4
-0
4 additions, 0 deletions
modules/saml/docs/sp.md
modules/saml/lib/Auth/Source/SP.php
+6
-0
6 additions, 0 deletions
modules/saml/lib/Auth/Source/SP.php
with
10 additions
and
0 deletions
modules/saml/docs/sp.md
+
4
−
0
View file @
11e3e43b
...
...
@@ -53,6 +53,10 @@ All these parameters override the equivalent option from the configuration.
: The samlp:Extensions that will be sent in the login request.
`saml:logout:Extensions`
: The samlp:Extensions that will be sent in the logout request.
`saml:NameID`
: Add a Subject element with a NameID to the SAML AuthnRequest for the IdP.
This must be a
\S
AML2
\X
ML
\s
aml
\N
ameID object.
...
...
This diff is collapsed.
Click to expand it.
modules/saml/lib/Auth/Source/SP.php
+
6
−
0
View file @
11e3e43b
...
...
@@ -977,6 +977,12 @@ class SP extends \SimpleSAML\Auth\Source
$lr
->
setRelayState
(
$id
);
$lr
->
setDestination
(
$endpoint
[
'Location'
]);
if
(
isset
(
$state
[
'saml:logout:Extensions'
])
&&
count
(
$state
[
'saml:logout:Extensions'
])
>
0
)
{
$lr
->
setExtensions
(
$state
[
'saml:logout:Extensions'
]);
}
elseif
(
$this
->
metadata
->
getArray
(
'saml:logout:Extensions'
,
null
)
!==
null
)
{
$lr
->
setExtensions
(
$this
->
metadata
->
getArray
(
'saml:logout:Extensions'
));
}
$encryptNameId
=
$idpMetadata
->
getBoolean
(
'nameid.encryption'
,
null
);
if
(
$encryptNameId
===
null
)
{
$encryptNameId
=
$this
->
metadata
->
getBoolean
(
'nameid.encryption'
,
false
);
...
...
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