Hello,
I am using CAS 6.1.6 and I am trying to configure CAS as SAML2 IDP.
I included compile "org.apereo.cas:cas-server-support-saml-idp:${casServerVersion}" in build.gradle.
My client settings are :
$settingsInfo = array (
'sp' => array (
'entityId' => $spBaseUrl.'/demo1/metadata.php',
'assertionConsumerService' => array (
'url' => $spBaseUrl.'/demo1/index.php?acs',
),
'singleLogoutService' => array (
'url' => $spBaseUrl.'/demo1/index.php?sls',
),
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
),
'idp' => array (
'entityId' => '
https://cas.example.org/idp',
'singleSignOnService' => array (
'url' => '
https://cas.localhost/cas/idp/profile/SAML2/Redirect/SSO',
),
'singleLogoutService' => array (
'url' => '
https://cas.localhost/cas/idp/profile/SAML2/POST/SLO',
),
'x509cert' => 'MIIDF...==',
),
);
When trying to login, I get an error on CAS : service is not authorized.
I installed service registry as json file :
In CAS log, I can see :
[org.apereo.cas.support.saml.web.idp.profile.AbstractSamlProfileHandlerController] - <[
http://saml.localhost/demo1/metadata.php] is not found in the registry or service access is denied. Ensure service is registered in service registry>
Where is my error ? I tried to configure serviceId with regex, without success.
Can someone help ? Thanks