Hi List
I looked up other postings in this list about this error message but my problem seems a little bit different. My IDP URL seems to miss is EntityID.
I'm just starting with simplesamlphp and I still try to learn on how to use it. My first idea was to set it up (v 1.8) and play with it. So I have two domain names (for the cookies) sharing the same source on a localhost with windows 7 64bit:
localipd is the dns to be used as the identity provider
localsp is the dns to be used as the service provider
Both domains have the same simplesamlphp installation with
/module.php in
DOCUMENT_ROOTI must have missed something obvious because when I start
http://localsp/module.php/core/authenticate.php?as=local-idpI get redirected to:
http://localidp/saml2/idp/SSOService.php?SAMLRequest=hVLLbsIwEPyVyPeQOIiXBUgUVBWJFkRoD71UG9sUS46dejd9%2FH1DoBJc6M2anZmd3fUYobSVmNV0cFv9UWuk6Lu0DkVbmLA6OOEBDQoHpUZBUuSzx5XIOqmogicvvWUXktsKQNSBjHcsWi4m7C0d9RX0M8j4oDvs8pHkPcWLlKt%2BT2pe9Ia9Yi%2BLASjFohcdsFFOWGPUyBFrvXRI4KiBUp7FKY95d8cz0R2KtP%2FKokUzjXFArepAVIkksV6CNapKjmGz5PjK83Wuw6eRulMdKhbN%2FkLOvcO61OFcfd6urm2wSkqvatvqWsMEz8YxSGzRlhg3bVi0Oa%2Frzjhl3PvtTRUnEoqH3W4Tb9b5jk3HR2vRTh6m%2FwcpNYECgusc4%2BTSZXy6%2F1PTf7nYeGvkT3TvQwl0O94RMSret1RBARwa7ahZnrX%2Bax40kJ4wCrVmyfTU8vqXTX8B&RelayState=http%3A%2F%2Flocalsp%2Fmodule.php%2Fcore%2Fauthenticate.php%3Fas%3Dlocal-idpshowing this error:
SimpleSAML_Error_Error: UNHANDLEDEXCEPTION
Backtrace:
0 D:\HTDOCS-PORTS\simplesamlphp\www\module.php:180 (N/A)
Caused by: SimpleSAML_Error_Exception: Cannot retrieve metadata for IdP
'http://localidp/saml2/idp/metadata.php' because it isn't a valid IdP for this SP.
Backtrace:
2 D:\HTDOCS-PORTS\simplesamlphp\modules\saml\lib\Auth\Source\SP.php:108 (sspmod_saml_Auth_Source_SP::getIdPMetadata)
1 D:\HTDOCS-PORTS\simplesamlphp\modules\saml\www\sp\saml2-acs.php:47 (require)
0 D:\HTDOCS-PORTS\simplesamlphp\www\module.php:135 (N/A)
My configs:
***********
authsources.php
$config = array(
'local-idp' => array(
'saml:SP',
'idp' => '
http://localidp',
),
);
saml20-idp-remote.php
$metadata['
http://localidp'] = array(
'name' => array(
'en' => 'local idp',
),
'description' => 'Test Accounts hosted locally',
'SingleSignOnService' => '
http://localidp/saml2/idp/SSOService.php',
'SingleLogoutService' => '
http://localidp/saml2/idp/SingleLogoutService.php',
'certFingerprint' => 'dunno',
);
saml20-idp-hosted.php
$metadata['
http://localidp'] = array(
'host' => '__DEFAULT__',
'privatekey' => 'server.pem',
'certificate' => 'server.crt',
'auth' => 'example-userpass',
'AttributeNameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
'authproc' => array(
100 => array('class' => 'core:AttributeMap', 'name2oid'),
),
);
saml20-sp-remote.php
$metadata['
http://localsp/module.php/saml/sp/metadata.php/local-idp'] = array (
'AssertionConsumerService' => '
http://localsp/module.php/saml/sp/saml2-acs.php/local-idp',
'SingleLogoutService' => '
http://localsp/module.php/saml/sp/saml2-logout.php/local-idp',
);
Where did I screwed up?
TIA,
Patrick