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
750403d9
Commit
750403d9
authored
5 years ago
by
Tim van Dijen
Committed by
Tim van Dijen
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix Psalm-issues in IdP.php
parent
87f1aca2
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
lib/SimpleSAML/IdP.php
+12
-7
12 additions, 7 deletions
lib/SimpleSAML/IdP.php
with
12 additions
and
7 deletions
lib/SimpleSAML/IdP.php
+
12
−
7
View file @
750403d9
...
...
@@ -40,9 +40,9 @@ class IdP
* We use this to support cross-protocol logout until
* we implement a cross-protocol IdP.
*
* @var string
|null
* @var string
*/
private
$associationGroup
=
null
;
private
$associationGroup
;
/**
* The configuration for this IdP.
...
...
@@ -98,7 +98,7 @@ class IdP
// probably no SAML 2 IdP configured for this host. Ignore the error
}
}
else
{
assert
(
false
);
throw
new
\Exception
(
"Protocol not implemented."
);
}
if
(
$this
->
associationGroup
===
null
)
{
...
...
@@ -435,7 +435,6 @@ class IdP
* Find the logout handler of this IdP.
*
* @return IdP\LogoutHandlerInterface The logout handler class.
*
* @throws Exception If we cannot find a logout handler.
*/
public
function
getLogoutHandler
()
...
...
@@ -453,6 +452,7 @@ class IdP
throw
new
Error\Exception
(
'Unknown logout handler: '
.
var_export
(
$logouttype
,
true
));
}
/** @var IdP\LogoutHandlerInterface */
return
new
$handler
(
$this
);
}
...
...
@@ -505,8 +505,10 @@ class IdP
$this
->
authSource
->
logout
(
$returnTo
);
$handler
=
$this
->
getLogoutHandler
();
$handler
->
startLogout
(
$state
,
$assocId
);
if
(
$assocId
!==
null
)
{
$handler
=
$this
->
getLogoutHandler
();
$handler
->
startLogout
(
$state
,
$assocId
);
}
assert
(
false
);
}
...
...
@@ -526,8 +528,11 @@ class IdP
assert
(
is_string
(
$assocId
));
assert
(
is_string
(
$relayState
)
||
$relayState
===
null
);
$index
=
strpos
(
$assocId
,
':'
);
assert
(
is_int
(
$index
));
$session
=
Session
::
getSessionFromRequest
();
$session
->
deleteData
(
'core:idp-ssotime'
,
$this
->
id
.
';'
.
substr
(
$assocId
,
strpos
(
$assocId
,
':'
)
+
1
));
$session
->
deleteData
(
'core:idp-ssotime'
,
$this
->
id
.
';'
.
substr
(
$assocId
,
$index
+
1
));
$handler
=
$this
->
getLogoutHandler
();
$handler
->
onResponse
(
$assocId
,
$relayState
,
$error
);
...
...
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