-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mathielen/master
Set SessionIndex in SLORequest
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,6 @@ private function findParty($entityId, array $entityDescriptorStores) | |
} | ||
} | ||
|
||
return null; | ||
return; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/LightSaml/Logout/Action/Profile/Outbound/LogoutRequest/SetSessionIndexAction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the LightSAML-Logout package. | ||
* | ||
* (c) Milos Tomic <[email protected]> | ||
* | ||
* This source file is subject to the GPL-3 license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace LightSaml\Logout\Action\Profile\Outbound\LogoutRequest; | ||
|
||
use LightSaml\Action\Profile\AbstractProfileAction; | ||
use LightSaml\Context\Profile\Helper\MessageContextHelper; | ||
use LightSaml\Context\Profile\ProfileContext; | ||
|
||
/** | ||
* Sets SessionIndex of the outbounding AuthnRequest with values given in the LogoutContext SsoSessionState. | ||
*/ | ||
class SetSessionIndexAction extends AbstractProfileAction | ||
{ | ||
/** | ||
* @param ProfileContext $context | ||
*/ | ||
protected function doExecute(ProfileContext $context) | ||
{ | ||
$logoutRequest = MessageContextHelper::asLogoutRequest($context->getOutboundContext()); | ||
$ssoSessionState = $context->getLogoutSsoSessionState(); | ||
|
||
$logoutRequest->setSessionIndex($ssoSessionState->getSessionIndex()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters