for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LightSAML-IDP 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\Idp\Action\Assertion\Outbound;
use LightSaml\Action\Assertion\AbstractAssertionAction;
use LightSaml\Context\Profile\AssertionContext;
use LightSaml\Resolver\Session\SessionProcessorInterface;
use Psr\Log\LoggerInterface;
class IdpSsoStateAction extends AbstractAssertionAction
{
/** @var SessionProcessorInterface */
private $sessionProcessor;
/**
* @param LoggerInterface $logger
* @param SessionProcessorInterface $sessionProcessor
public function __construct(LoggerInterface $logger, SessionProcessorInterface $sessionProcessor)
parent::__construct($logger);
$this->sessionProcessor = $sessionProcessor;
}
* @param AssertionContext $context
* @return void
protected function doExecute(AssertionContext $context)
if ($context->getAssertion()) {
$this->sessionProcessor->processAssertions(
array($context->getAssertion()),
$context->getProfileContext()->getOwnEntityDescriptor()->getEntityID(),
$context->getProfileContext()->getPartyEntityDescriptor()->getEntityID()
);