| @@ 71-81 (lines=11) @@ | ||
| 68 | } | |
| 69 | ||
| 70 |             throw new Exception('Unable to insert the new SP saml_entity'); | |
| 71 |         } else { | |
| 72 | // Return the SP data | |
| 73 | $results = reset($stmt->fetchAll()); | |
| 74 | $data = [ | |
| 75 | 'entityId' => $results['entity_id'], | |
| 76 | 'type' => $results['type'], | |
| 77 | 'configuration' => $results['configuration'], | |
| 78 | 'id' => $results['id'], | |
| 79 | ]; | |
| 80 | return $data; | |
| 81 | } | |
| 82 | } | |
| 83 | ||
| 84 | public function createIdpIfNotExists($entityId, $certificate) | |
| @@ 123-133 (lines=11) @@ | ||
| 120 | } | |
| 121 | ||
| 122 |             throw new Exception('Unable to insert the new SP saml_entity'); | |
| 123 |         } else { | |
| 124 | // Return the SP data | |
| 125 | $results = reset($stmt->fetchAll()); | |
| 126 | $data = [ | |
| 127 | 'entityId' => $results['entity_id'], | |
| 128 | 'type' => $results['type'], | |
| 129 | 'configuration' => $results['configuration'], | |
| 130 | 'id' => $results['id'], | |
| 131 | ]; | |
| 132 | return $data; | |
| 133 | } | |
| 134 | } | |
| 135 | } | |
| 136 | ||