Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simplesamlphp wrong metadata

I'm making two application with simplesaml, an Service Provider and an Identity Provider.

While I'm trying to test them out I get the following error:

SimpleSAML_Error_MetadataNotFound: METADATANOTFOUND('%ENTITYID%' => '\'http://samlsp.dev/module.php/saml/sp/metadata.php/default-sp\'')
Backtrace:
3 /var/www/samlidp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:301 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaData)
2 /var/www/samlidp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:318 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig)
1 /var/www/samlidp/modules/saml/lib/IdP/SAML2.php:303 (sspmod_saml_IdP_SAML2::receiveAuthnRequest)
0 /var/www/samlidp/www/saml2/idp/SSOService.php:18 (N/A)

This is the metadata of the sp:

$metadata['http://samlidp.dev/saml2/idp/metadata.php'] = array (
    'name' => 'test',
    'description' => 'next login test',
    'SingleSignOnService' => 'http://samlidp.dev/saml2/idp/SSOService.php',
    'SingleLogoutService' => 'samlidp.dev/saml2/idp/SingleLogoutService.php',
    'certFingerprint' => '38:EB:B2:DB:6F:45:C2:D6:92:CE:85:29:6B:CE:A6:D0:CE:91:19:7A'
);

And this is the metadata of the IdP:

$metadata['http://samlsp.dev'] = array(
    'AssertionConsumerService'=> 'http://samlsp.dev/module.php/saml/sp/saml2-acs.php/default-sp',
    'SingleLogoutService'=> 'http://samlsp.dev/module.php/saml/sp/saml2-logout.php/default-sp'
);
like image 496
Wouter Avatar asked Sep 27 '22 15:09

Wouter


1 Answers

I found the answer myself. Apparently I made a call to the wrong metadata.

First it was this

$metadata['http://samlsp.dev'] = array(
    'AssertionConsumerService'=> 'http://samlsp.dev/module.php/saml/sp/saml2-acs.php/default-sp',
    'SingleLogoutService'=> 'http://samlsp.dev/module.php/saml/sp/saml2-logout.php/default-sp'
);

but it had to be this:

$metadata['http://samlsp.dev/module.php/saml/sp/metadata.php/default-sp'] = array(
    'AssertionConsumerService'=> 'http://samlsp.dev/module.php/saml/sp/saml2-acs.php/default-sp',
    'SingleLogoutService'=> 'http://samlsp.dev/module.php/saml/sp/saml2-logout.php/default-sp'
);

I made a call to the wrong metadata and my IdP couldn't find the metadata for it

like image 65
Wouter Avatar answered Oct 06 '22 00:10

Wouter