<div dir="ltr"><div><div><div>I have a question about Idp response ,what i understand is the Idp send the SAML response with an encrypted assertion and one public key sent with the same response (public key of SP ) .<br><br></div>what is someone else create one reponse with an encrypted assertion(manually) and send it into an Idp .<br></div>second question , why is it important to send the public key within the response.<br><br></div>can anyone help me to understand this chain ?<br><div><div><div><div><div><div><div><br><br><br><br><?xml version="1.0" encoding="UTF-8"?><saml2p:Response
xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
Destination="<a href="http://sp.example.com/Shibboleth.sso/SAML2/POST">http://sp.example.com/Shibboleth.sso/SAML2/POST</a>"
ID="_a5fb1e00ce28b5d978fdbc96ff12d047"
InResponseTo="_3038953c889f6818dbe819d1780c0a70"
IssueInstant="2015-02-12T15:50:44.980Z" Version="2.0"><br>
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"><a href="https://idp.example.com/idp/shibboleth">https://idp.example.com/idp/shibboleth</a></saml2:Issuer><br> <saml2p:Status><br> <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/><br> </saml2p:Status><br> <saml2:EncryptedAssertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"><br>
<xenc:EncryptedData xmlns:xenc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"
Id="_b63280d236530ffc78f01fc91794c86f"
Type="<a href="http://www.w3.org/2001/04/xmlenc#Element">http://www.w3.org/2001/04/xmlenc#Element</a>"><br>
<xenc:EncryptionMethod
Algorithm="<a href="http://www.w3.org/2001/04/xmlenc#aes128-cbc">http://www.w3.org/2001/04/xmlenc#aes128-cbc</a>"
xmlns:xenc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"/><br> <ds:KeyInfo xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"><br> <xenc:EncryptedKey Id="_4c5205782b18e2bd90270b1b0c620562" xmlns:xenc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"><br>
<xenc:EncryptionMethod
Algorithm="<a href="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p</a>"
xmlns:xenc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"><br>
<ds:DigestMethod Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</a>"
xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"/><br> </xenc:EncryptionMethod><br> <ds:KeyInfo><br> <ds:X509Data><br> <ds:X509Certificate> Certificate </ds:X509Certificate><br> </ds:X509Data><br> </ds:KeyInfo><br> <xenc:CipherData xmlns:xenc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"><br>
<xenc:CipherValue>XGGQEqxA1YIGAsthbRnKn8i5n2lMPmYYCBufKmoibbYlFApJh5+h8H01xQ+2wr3uBtBQQwVJzf7vNBFyClHX0hWfQMY0t4NRkGKzFpcY0Aki+lzZMVgm245xNmLRrwOLtb57cNJlh3E2FgjBwEXJHTBIffFa6P75FQq+qCPWfhM=</xenc:CipherValue><br> </xenc:CipherData><br> </xenc:EncryptedKey><br> </ds:KeyInfo><br> <xenc:CipherData xmlns:xenc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"><br> <xenc:CipherValue><br>Encrypted assertion<br></xenc:CipherValue><br> </xenc:CipherData><br> </xenc:EncryptedData><br> </saml2:EncryptedAssertion><br></saml2p:Response><br clear="all"><br><br clear="all"><br></div></div></div></div></div></div></div></div>