$metadata['example'] = array(
'SingleSignOnService' => 'https://example.com/cas/login',
'SingleLogoutService' => 'https://example.com/cas/logout'
);
"service" and "ticket" parameters are both required
You forget there ever was something called
"CAS" and install and configure your SSP software as a SAML SP,
exchanging SAML protocol messages to a SAML IDP (that happens to be
another implementation).
'default-sp' => array(
'saml:SP',
// The entity ID of this SP.
// Can be NULL/unset, in which case an entity ID is generated based on the metadata URL.
'entityID' => null,
// The entity ID of the IdP this should SP should contact.
// Can be NULL/unset, in which case the user will be shown a list of available IdPs.
'idp' => 'example',
// The URL to the discovery service.
// Can be NULL/unset, in which case a builtin discovery service will be used.
'discoURL' => null,
'acs.Bindings' => array(
'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01',
'urn:oasis:names:tc:SAML:1.0:profiles:browser-post',
),
$metadata['example'] = array(
'SingleSignOnService' => 'https://example.com/cas/login',
'SingleLogoutService' => 'https://example.com/cas/logout',
'RelayState' => 'https://my.app.local/',
'target' => 'https://my.app.local/',
);
0 /home/me/www/local.app.my/application/simplesaml/web/module.php:179 (N/A)Caused by: InvalidArgumentException: Invalid input parameters.Backtrace:5 /home/me/www/local.app.my/application/simplesaml/lib/SimpleSAML/Utils/XML.php:83 (SimpleSAML\Utils\XML::debugSAMLMessage)4 /home/me/www/local.app.my/application/simplesaml/lib/SimpleSAML/Utilities.php:612 (SimpleSAML_Utilities::debugMessage)3 /home/me/www/local.app.my/application/simplesaml/vendor/simplesamlphp/saml2/src/SAML2/Compat/Ssp/Container.php:39 (SAML2_Compat_Ssp_Container::debugMessage)2 /home/me/www/local.app.my/application/simplesaml/vendor/simplesamlphp/saml2/src/SAML2/HTTPPost.php:69 (SAML2_HTTPPost::receive)1 /home/me/www/local.app.my/application/simplesaml/modules/saml/www/sp/saml2-acs.php:31 (require)0 /home/me/www/local.app.my/application/simplesaml/web/module.php:134 (N/A)
$metadata['example'] = array(
'SingleSignOnService' => 'https://example.com/cas/login',
'SingleLogoutService' => 'https://example.com/cas/logout',
'RelayState' => 'https://my.app.local/',
'target' => 'https://my.app.local/',
);
'Test_cas' => array(
'cas:CAS',
'cas' => array(
'login' => 'https://xgsimplesamlphp.fr/simplesaml/module.php/casserver/login.php',
'serviceValidate' => 'https://xgsimplesamlphp.fr/simplesaml/module.php/casserver/serviceValidate',
'logout' => 'https://xgsimplesamlphp.fr/simplesaml/module.php/casserver/logout',
'attributes' => array('uid' => '/cas:serviceResponse/cas:authenticationSuccess/cas:uid'),
),
'ldap' => array('servers' => false),
),
'saml2' => array(
'exampleauth:UserPass',
'admin1:admin1' => array(
'uid' => array('gle...@test.com'),
),
'admin2:admin2' => array(
'uid' => array('glen...@test.com'),
),
'admin3:admin3' => array(
'uid' => array('glen...@test.com'),
),
),
<?php
/*
* Configuration for the module casserver.
*/
$config = array (
'legal_service_urls' => array(
'https://ck-test-simplesaml.fr',
//'https://ck-test-simplesaml.fr/simplesaml/module.php/cas/linkback.php',
'http://test.feide.no/casclient',
'http://test.feide.no/cas2',
),
// Legal values: saml2, shib13
'auth' => 'saml2',
'ticketcache' => 'ticketcache',
//'attrname' => 'uid','IdExterne','Nom','Prenom','IdExterne','login',
'attrname' => 'uid',
//'attributes' => TRUE, // enable transfer of attributes
);
Caused by: SimpleSAML_Error_Exception: Error fetching 'https://xgsimplesamlphp.fr/simplesaml/module.php/casserver/serviceValidate?ticket=ST-ff366cc68c7f4c061aa462a3d7d01c24374a7cf402&service=https%3A%2F%2Fck-test-simplesaml.fr%2Fsimplesaml%2Fmodule.php%2Fcas%2Flinkback.php%3FstateID%3D_a9c2513a67600afb1b82689addc07d110eec9028d8%253Ahttps%253A%252F%252Fck-test-simplesaml.fr%252Fsimplesaml%252Fmodule.php%252Fcore%252Fas_login.php%253FAuthId%253DTest_cas%2526ReturnTo%253Dhttps%25253A%25252F%25252Fck-test-simplesaml.fr%25252Fsimplesaml%25252Fmodule.php%25252Fcore%25252Fauthenticate.php%25253Fas%25253DTest_cas':file_get_contents(https://xgsimplesamlphp.fr/simplesaml/module.php/casserver/serviceValidate?ticket=ST-ff366cc68c7f4c061aa462a3d7d01c24374a7cf402&service=https%3A%2F%2Fck-test-simplesaml.fr%2Fsimplesaml%2Fmodule.php%2Fcas%2Flinkback.php%3FstateID%3D_a9c2513a67600afb1b82689addc07d110eec9028d8%253Ahttps%253A%252F%252Fck-test-simplesaml.fr%252Fsimplesaml%252Fmodule.php%252Fcore%252Fas_login.php%253FAuthId%253DTest_cas%2526ReturnTo%253Dhttps%25253A%25252F%25252Fck-test-simplesaml.fr%25252Fsimplesaml%25252Fmodule.php%25252Fcore%25252Fauthenticate.php%25253Fas%25253DTest_cas): failed to open stream: operation failed
'ticketstore' => array(
'class' => 'casserver:FileSystemTicketStore', //Not intended for production
'directory' => 'ticketcache',
),