If you are facing errors in the 'test the SSO connection' step while configuring SSO for Twilio Console, you can troubleshoot the error with the help of the steps mentioned below.
If the test user is redirected from the Twilio page but lands on a 404 Not Found
page on the Identity Provider side, it means that the IdP metadata may not be correctly configured on the Twilio SSO Profile.
Please check and ensure that the IdP metadata (Issuer ID/Entity Id as well as the Single sign-on URL/Login URL) values are correctly configured. Save the SSO Profile and retry the test SSO connection step.
You can also capture the SAML Request from the user's browser and user SAML Request decode tool to view the actual SAML request sent from Twilio and see if the value in SAML request matches with what is configured in the SSO Profile and your Identity Provider.
This error is caused when the message in the SAML response received by Twilio isn't Signed. Twilio requires the message to be signed.
This error is caused when the received SAML response is invalid. This can most likely happen if you are sending encrypted SAML responses to Twilio.
This error is caused when the value of the Audience URI/Entity ID in the SAML response does not match the value configured in the Twilio SSO Profile.
This error is caused when the identity provider doesn't return the RelayState
parameter along with the SAML response.