@@ 130-140 (lines=11) @@ | ||
127 | * @param ServiceProvider $targetServiceProvider |
|
128 | * @return SAML2_Response |
|
129 | */ |
|
130 | private function createNewAuthnResponse(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
|
131 | { |
|
132 | $response = new SAML2_Response(); |
|
133 | $response->setAssertions([$newAssertion]); |
|
134 | $response->setIssuer($this->hostedIdentityProvider->getEntityId()); |
|
135 | $response->setIssueInstant($this->getTimestamp()); |
|
136 | $response->setDestination($targetServiceProvider->getAssertionConsumerUrl()); |
|
137 | $response->setInResponseTo($this->stateHandler->getRequestId()); |
|
138 | ||
139 | return $response; |
|
140 | } |
|
141 | ||
142 | /** |
|
143 | * @param string $interval a DateInterval compatible interval to skew the time with |
@@ 200-210 (lines=11) @@ | ||
197 | * @param ServiceProvider $targetServiceProvider |
|
198 | * @return \SAML2_Response |
|
199 | */ |
|
200 | private function createNewAuthnResponse(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
|
201 | { |
|
202 | $response = new \SAML2_Response(); |
|
203 | $response->setAssertions([$newAssertion]); |
|
204 | $response->setIssuer($this->hostedIdentityProvider->getEntityId()); |
|
205 | $response->setIssueInstant($this->getTimestamp()); |
|
206 | $response->setDestination($targetServiceProvider->getAssertionConsumerUrl()); |
|
207 | $response->setInResponseTo($this->proxyStateHandler->getRequestId()); |
|
208 | ||
209 | return $response; |
|
210 | } |
|
211 | ||
212 | /** |
|
213 | * @param string $interval a \DateInterval compatible interval to skew the time with |