FWIW I ran across this same issue on 6.5 with a 500 error and it was not due to the entity id, here was my resolution: make sure your SAML assertion url (assertionConsumerServiceURL) is beneath your path (path) so if your path is /content/somepagethen your assertion url needs to be: https://yoursi...