@@ 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 |
@@ 166-176 (lines=11) @@ | ||
163 | * @param ServiceProvider $targetServiceProvider |
|
164 | * @return \SAML2_Response |
|
165 | */ |
|
166 | private function createNewAuthnResponse(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
|
167 | { |
|
168 | $response = new \SAML2_Response(); |
|
169 | $response->setAssertions([$newAssertion]); |
|
170 | $response->setIssuer($this->hostedIdentityProvider->getEntityId()); |
|
171 | $response->setIssueInstant($this->getTimestamp()); |
|
172 | $response->setDestination($targetServiceProvider->getAssertionConsumerUrl()); |
|
173 | $response->setInResponseTo($this->proxyStateHandler->getRequestId()); |
|
174 | ||
175 | return $response; |
|
176 | } |
|
177 | ||
178 | /** |
|
179 | * @param string $interval a \DateInterval compatible interval to skew the time with |