src/Surfnet/StepupGateway/GatewayBundle/Service/ProxyResponseService.php 1 location
|
@@ 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 |
src/Surfnet/StepupGateway/SamlStepupProviderBundle/Saml/ProxyResponseFactory.php 1 location
|
@@ 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 |
src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Saml/ResponseFactory.php 1 location
|
@@ 87-97 (lines=11) @@
|
84 |
|
* @param ServiceProvider $targetServiceProvider |
85 |
|
* @return \SAML2_Response |
86 |
|
*/ |
87 |
|
private function createNewAuthnResponse(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
88 |
|
{ |
89 |
|
$response = new \SAML2_Response(); |
90 |
|
$response->setAssertions([$newAssertion]); |
91 |
|
$response->setIssuer($this->hostedIdentityProvider->getEntityId()); |
92 |
|
$response->setIssueInstant($this->getTimestamp()); |
93 |
|
$response->setDestination($targetServiceProvider->getAssertionConsumerUrl()); |
94 |
|
$response->setInResponseTo($this->proxyStateHandler->getRequestId()); |
95 |
|
|
96 |
|
return $response; |
97 |
|
} |
98 |
|
|
99 |
|
/** |
100 |
|
* @param string $nameId |