Example #1
0
 /**
  * @param Assertion[] $assertions
  * @param string      $ownEntityId
  * @param string      $partyEntityId
  */
 public function processAssertions(array $assertions, $ownEntityId, $partyEntityId)
 {
     $now = $this->timeProvider->getDateTime()->setTimezone(new \DateTimeZone('GMT'));
     $ssoState = $this->ssoStateStore->get();
     foreach ($assertions as $assertion) {
         if ($assertion instanceof Assertion) {
             if ($this->supportsSession($assertion)) {
                 $this->checkSession($ownEntityId, $partyEntityId, $ssoState, $assertion, $now);
             }
         } else {
             throw new \InvalidArgumentException('Expected Assertion');
         }
     }
     $this->ssoStateStore->set($ssoState);
 }