@@ 99-112 (lines=14) @@ | ||
96 | * @param SAML2_Assertion $newAssertion |
|
97 | * @param ServiceProvider $targetServiceProvider |
|
98 | */ |
|
99 | private function addSubjectConfirmationFor(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
|
100 | { |
|
101 | $confirmation = new SAML2_XML_saml_SubjectConfirmation(); |
|
102 | $confirmation->Method = SAML2_Const::CM_BEARER; |
|
103 | ||
104 | $confirmationData = new SAML2_XML_saml_SubjectConfirmationData(); |
|
105 | $confirmationData->InResponseTo = $this->stateHandler->getRequestId(); |
|
106 | $confirmationData->Recipient = $targetServiceProvider->getAssertionConsumerUrl(); |
|
107 | $confirmationData->NotOnOrAfter = $this->getTimestamp('PT8H'); |
|
108 | ||
109 | $confirmation->SubjectConfirmationData = $confirmationData; |
|
110 | ||
111 | $newAssertion->setSubjectConfirmation([$confirmation]); |
|
112 | } |
|
113 | ||
114 | /** |
|
115 | * @param SAML2_Assertion $newAssertion |
@@ 131-144 (lines=14) @@ | ||
128 | * @param SAML2_Assertion $newAssertion |
|
129 | * @param ServiceProvider $targetServiceProvider |
|
130 | */ |
|
131 | private function addSubjectConfirmationFor(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
|
132 | { |
|
133 | $confirmation = new \SAML2_XML_saml_SubjectConfirmation(); |
|
134 | $confirmation->Method = \SAML2_Const::CM_BEARER; |
|
135 | ||
136 | $confirmationData = new \SAML2_XML_saml_SubjectConfirmationData(); |
|
137 | $confirmationData->InResponseTo = $this->proxyStateHandler->getRequestId(); |
|
138 | $confirmationData->Recipient = $targetServiceProvider->getAssertionConsumerUrl(); |
|
139 | $confirmationData->NotOnOrAfter = $this->getTimestamp('PT8H'); |
|
140 | ||
141 | $confirmation->SubjectConfirmationData = $confirmationData; |
|
142 | ||
143 | $newAssertion->setSubjectConfirmation([$confirmation]); |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * @param SAML2_Assertion $assertion |
@@ 125-138 (lines=14) @@ | ||
122 | * @param SAML2_Assertion $newAssertion |
|
123 | * @param ServiceProvider $targetServiceProvider |
|
124 | */ |
|
125 | private function addSubjectConfirmationFor(SAML2_Assertion $newAssertion, ServiceProvider $targetServiceProvider) |
|
126 | { |
|
127 | $confirmation = new \SAML2_XML_saml_SubjectConfirmation(); |
|
128 | $confirmation->Method = \SAML2_Const::CM_BEARER; |
|
129 | ||
130 | $confirmationData = new \SAML2_XML_saml_SubjectConfirmationData(); |
|
131 | $confirmationData->InResponseTo = $this->proxyStateHandler->getRequestId(); |
|
132 | $confirmationData->Recipient = $targetServiceProvider->getAssertionConsumerUrl(); |
|
133 | $confirmationData->NotOnOrAfter = $this->getTimestamp('PT8H'); |
|
134 | ||
135 | $confirmation->SubjectConfirmationData = $confirmationData; |
|
136 | ||
137 | $newAssertion->setSubjectConfirmation([$confirmation]); |
|
138 | } |
|
139 | ||
140 | /** |
|
141 | * @param SAML2_Assertion $newAssertion |