| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function resolve(IdentityProvidable $idp, array $config): array |
||
| 20 | { |
||
| 21 | if ($idp->idpX509cert() === null) { |
||
| 22 | throw new ConfigurationException('Identity Provider certificate is missing'); |
||
| 23 | } |
||
| 24 | |||
| 25 | $config['idp'] = [ |
||
| 26 | 'entityId' => $idp->idpEntityId(), |
||
| 27 | 'singleSignOnService' => ['url' => $idp->idpLoginUrl()], |
||
| 28 | 'singleLogoutService' => ['url' => $idp->idpLogoutUrl()], |
||
| 29 | 'x509cert' => $idp->idpX509cert() |
||
| 30 | ]; |
||
| 31 | |||
| 32 | $config['sp']['NameIDFormat'] = $this->resolveNameIdFormatPrefix($idp->idpNameIdFormat()); |
||
| 33 | |||
| 34 | return $config; |
||
| 35 | } |
||
| 57 |