Hi,
I don't know if the object of my post is right, but this is my
problem.
i'm not really an expert with simpleSAML, but i managed to setting up
an simpleSAMLphp environment as a SP.
The authentication phase work find, but i can't configure the
config.php to read IDP attributes.
the IDP of my customer send me this assertion to allow me to configure
the SP side:
<?xml version="1.0"?>
<samlp:Response IssueInstant="2010-12-16T15:18:55.368Z" ID="j2AGHnh2j0-
uravGQx8_0viIPDF" Version="2.0" xmlns:samlp="urn:oasis:names:tc:SAML:
2.0:protocol" xmlns="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:ds="
http://www.w3.org/2000/09/xmldsig#">
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">lly-
qa:saml2:idp</saml:Issuer>
<samlp:Status>
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:
2.0:status:Success"/>
</samlp:Status>
<Assertion Version="2.0" IssueInstant="2010-12-16T15:18:55.899Z"
ID="kc5IsNxmJJAL52eAIBtu2yt0b2b">
<Issuer>lly-qa:saml2:idp</Issuer>
<ds:Signature>
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="
http://www.w3.org/
2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="
http://www.w3.org/2000/09/
xmldsig#rsa-sha1"/>
<ds:Reference URI="#kc5IsNxmJJAL52eAIBtu2yt0b2b">
<ds:Transforms>
<ds:Transform Algorithm="
http://www.w3.org/2000/09/
xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="
http://www.w3.org/2001/10/xml-exc-
c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="
http://www.w3.org/2000/09/
xmldsig#sha1"/>
<ds:DigestValue>GOJZC6uo/nviwpVl3xEaCWf6w64=</
ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>aabUnLzoL3sTSTfAQ4LwgZPZ8Gh7OLx9xboT43Oo62/
c1jMQyVEUooAbi8kFzDilZ2m9HCPxIc/4
9UArVsh5TLKygcKdbjJfjFu53yBP1BO7hdlaYr5JvOHlguPF
+u92GcEyVe5kcxlzG8eRTH4dmkkp
+AZIrn97l0WtKc0GTtw=</ds:SignatureValue>
</ds:Signature>
<Subject>
<NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-
format:unspecified">PINGTEST0002</NameID>
<SubjectConfirmation Method="urn:oasis:names:tc:SAML:
2.0:cm:bearer">
<SubjectConfirmationData
NotOnOrAfter="2010-12-16T15:20:55.899Z" Recipient="
https://my.url.fr/
environment_dev/simplesaml/module.php/saml/sp/saml2-acs.php/
environment_dev"/>
</SubjectConfirmation>
</Subject>
<Conditions NotOnOrAfter="2010-12-16T15:20:55.899Z"
NotBefore="2010-12-16T15:16:55.899Z">
<AudienceRestriction>
<Audience>icsallegro:saml2:sp</Audience>
</AudienceRestriction>
</Conditions>
<AuthnStatement AuthnInstant="2010-12-16T15:18:55.899Z"
SessionIndex="kc5IsNxmJJAL52eAIBtu2yt0b2b">
<AuthnContext>
<AuthnContextClassRef>urn:oasis:names:tc:SAML:
2.0:ac:classes:unspecified</AuthnContextClassRef>
</AuthnContext>
</AuthnStatement>
</Assertion>
</samlp:Response>
when i put this assertion in the metadata converter i have this error
message:
simplesamlphp WARNING [b44d7b08ab] Schema validation failed on XML
string:
level=2,code=1845,line=2,col=0,msg=Element '{urn:oasis:names:tc:SAML:
2.0:protocol}Response': No matching global declaration available for
the validation root.
Dec 28 10:54:23 simplesamlphp ERROR [b44d7b08ab] /allegro_dev/
simplesaml/admin/metadata-converter.php - UserError:
ErrCode:METADATA_PARSER: Unexpected+root+node%3A+%5Burn%3Aoasis%3Anames
%3Atc%3ASAML%3A2.0%3Aprotocol%5D%3AResponse
My customer say me that the attribute name is SAML_SUBJECT, but all
the conbinaisons I tried to read this attribute have failed (with:
core:GenerateGroup, core:AttributeAdd, core:TargetedID, ..)
I read many docs about the attributs with simpleSAML, but, I do not
know how turn the question to read this attribute or simply to show
all attributes returned by the IDP that will allow me to configur my
config.php file..
So if anyone has an idea that would be great, because I'm a little bit
lost.
thanks.