src/Surfnet/StepupGateway/SamlStepupProviderBundle/Saml/ProxyResponseFactory.php 1 location
|
@@ 108-121 (lines=14) @@
|
105 |
|
* @param Assertion $newAssertion |
106 |
|
* @param string $destination |
107 |
|
*/ |
108 |
|
private function addSubjectConfirmationFor(Assertion $newAssertion, $destination) |
109 |
|
{ |
110 |
|
$confirmation = new SubjectConfirmation(); |
111 |
|
$confirmation->Method = Constants::CM_BEARER; |
112 |
|
|
113 |
|
$confirmationData = new SubjectConfirmationData(); |
114 |
|
$confirmationData->InResponseTo = $this->stateHandler->getRequestId(); |
115 |
|
$confirmationData->Recipient = $destination; |
116 |
|
$confirmationData->NotOnOrAfter = $newAssertion->getNotOnOrAfter(); |
117 |
|
|
118 |
|
$confirmation->SubjectConfirmationData = $confirmationData; |
119 |
|
|
120 |
|
$newAssertion->setSubjectConfirmation([$confirmation]); |
121 |
|
} |
122 |
|
|
123 |
|
/** |
124 |
|
* @param Assertion $newAssertion |
src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Saml/ResponseFactory.php 1 location
|
@@ 130-143 (lines=14) @@
|
127 |
|
* @param Assertion $newAssertion |
128 |
|
* @param string $destination The ACS location |
129 |
|
*/ |
130 |
|
private function addSubjectConfirmationFor(Assertion $newAssertion, $destination) |
131 |
|
{ |
132 |
|
$confirmation = new SubjectConfirmation(); |
133 |
|
$confirmation->Method = Constants::CM_BEARER; |
134 |
|
|
135 |
|
$confirmationData = new SubjectConfirmationData(); |
136 |
|
$confirmationData->InResponseTo = $this->proxyStateHandler->getRequestId(); |
137 |
|
$confirmationData->Recipient = $destination; |
138 |
|
$confirmationData->NotOnOrAfter = $newAssertion->getNotOnOrAfter(); |
139 |
|
|
140 |
|
$confirmation->SubjectConfirmationData = $confirmationData; |
141 |
|
|
142 |
|
$newAssertion->setSubjectConfirmation([$confirmation]); |
143 |
|
} |
144 |
|
|
145 |
|
/** |
146 |
|
* @param Assertion $assertion |
src/Surfnet/StepupGateway/GatewayBundle/Service/ProxyResponseService.php 1 location
|
@@ 142-155 (lines=14) @@
|
139 |
|
* @param Assertion $newAssertion |
140 |
|
* @param string $destination ACS URL |
141 |
|
*/ |
142 |
|
private function addSubjectConfirmationFor(Assertion $newAssertion, $destination) |
143 |
|
{ |
144 |
|
$confirmation = new SubjectConfirmation(); |
145 |
|
$confirmation->Method = Constants::CM_BEARER; |
146 |
|
|
147 |
|
$confirmationData = new SubjectConfirmationData(); |
148 |
|
$confirmationData->InResponseTo = $this->proxyStateHandler->getRequestId(); |
149 |
|
$confirmationData->Recipient = $destination; |
150 |
|
$confirmationData->NotOnOrAfter = $newAssertion->getNotOnOrAfter(); |
151 |
|
|
152 |
|
$confirmation->SubjectConfirmationData = $confirmationData; |
153 |
|
|
154 |
|
$newAssertion->setSubjectConfirmation([$confirmation]); |
155 |
|
} |
156 |
|
|
157 |
|
/** |
158 |
|
* @param Assertion $newAssertion |
tests/src/Controller/IdentityProviderController.php 1 location
|
@@ 178-191 (lines=14) @@
|
175 |
|
return $assertion; |
176 |
|
} |
177 |
|
|
178 |
|
private function addSubjectConfirmationFor(Assertion $newAssertion, $destination, $requestId) |
179 |
|
{ |
180 |
|
$confirmation = new SubjectConfirmation(); |
181 |
|
$confirmation->Method = Constants::CM_BEARER; |
182 |
|
|
183 |
|
$confirmationData = new SubjectConfirmationData(); |
184 |
|
$confirmationData->InResponseTo = $requestId; |
185 |
|
$confirmationData->Recipient = $destination; |
186 |
|
$confirmationData->NotOnOrAfter = $newAssertion->getNotOnOrAfter(); |
187 |
|
|
188 |
|
$confirmation->SubjectConfirmationData = $confirmationData; |
189 |
|
|
190 |
|
$newAssertion->setSubjectConfirmation([$confirmation]); |
191 |
|
} |
192 |
|
|
193 |
|
/** |
194 |
|
* @return XMLSecurityKey |