
l0dsl (l0dsl) asked a question.
We are currently conducting our tests with a trial account on Okta with following information:
https://trial-4299552.okta.com
For SP-initiated, connection is flawless and everything works properly.
But, for IDP-initiated, it does not connect and, unfortunately, the error we receive does not provide us with a useful clue. The error is as follows:
Login Failed, 400 Bad Request, Error Code: GENERAL_NONSUCCESS
We also analyzed the System Log, which exists in the Report menu, but no failed log can be found.
Please, find attached the files regarding SAML Request and SAML Response to the SP-initiated case with the successful connection:
OKTA_SP-initiated_SAMLRequest_params_SUCCESS.txt
OKTA_SP-initiated_SAMLRequest_SUCCESS.txt
as well as the files regarding SAML Response to the IDP-initiated case with the failed connection:
OKTA_IDP-initiated_SAMLResponse_params_FAILED.txt
OKTA_IDP-initiated_SAMLResponse_FAILED.txt
OKTA_IDP-initiated_SAMLResponse_web_FAILED.png
We need a detailed, more helpful error for SAML Response to IDP-initiated, so that we will be able to debug it.

Hello @l0dsl (l0dsl) Thank you for reacting out to our Community!
Usually "General nonsuccess" error indicates that there is a problem finding the account you are trying to use or the account does not exist. In the file attached I am unable to spot a value for First name, since the main 4 attributes for Okta are Username/NameID, email, First name and Last name, which could cause this issue. If one of the attributes is causing the problem, then this is should be reflected in the system log.
This could also be caused by the state of the user, user might be in password reset state.
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
But in the attached file (OKTA_IDP-initiated_SAMLResponse_FAILED.txt), there are the attributes with their values you mentioned (NameID, email, lastName, firstName):
Any suggestion ?
@Paul S. (Okta, Inc.)