<div dir="ltr">We recently had a problem where one of our SPs entityID's contained trailing spaces, but the metadata we had on the IdP did not.  So we got a request that looked like...<div><br><div><div><samlp:AuthnRequest</div><div>    Destination="<a href="https://shibboleth.umich.edu/idp/profile/SAML2/POST/SSO">https://shibboleth.umich.edu/idp/profile/SAML2/POST/SSO</a>"</div><div>    ID="_afcc608c-a09d-423f-afe8-e6fac36c6b69"</div><div>    IssueInstant="2016-09-27T20:33:04Z"</div><div>    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"</div><div>    Version="2.0" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"></div></div><div>    <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"><a href="https://service.example.umich.edu/">https://service.example.umich.edu/</a>  </saml:Issuer><br></div><div>...</div><div></samlp:AuthnRequest></div><div><br></div><div>but our response was for "<a href="https://service.example.umich.edu/">https://service.example.umich.edu/</a>".  Unsurprisingly, their SP did not like receiving a response for the wrong entityID, and we had a merry little POST fest.</div></div><div><br></div><div>Shouldn't the IdP have denied the entityID with the trailing spaces?  We didn't have metadata that matched that entityID.</div><div><br></div><div>Liam</div><div><br></div><div>ps - I have since read the entityID naming recommendations that recommend against putting trailing slashes on URL-style entityIDs.</div></div>