123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?php
- exit;
- $spBaseUrl = api_get_path(WEB_PATH).'plugin/keycloak/';
- $url = 'http://localhost:8080/';
- $realm = 'master';
- $path = '/path';
- $certificate = file_get_contents($path);
- $settingsInfo = [
- 'strict' => false,
- 'debug' => true,
- 'sp' => [
- 'entityId' => $spBaseUrl.'metadata.php',
- 'assertionConsumerService' => [
- 'url' => $spBaseUrl.'start.php?acs',
- ],
- 'singleLogoutService' => [
- 'url' => $spBaseUrl.'start.php?sls',
- ],
- 'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
- ],
- 'idp' => [
- 'entityId' => $url.'auth/realms/'.$realm,
- 'singleSignOnService' => [
- 'url' => $url.'auth/realms/'.$realm.'/protocol/saml',
- ],
- 'singleLogoutService' => [
- 'url' => $url.'auth/realms/'.$realm.'/protocol/saml',
- ],
- 'x509cert' => $certificate,
- ],
- ];
|