<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007j3OjTCAUOkta Identity EngineAdvanced Server AccessAnswered2022-06-15T17:06:14.000Z2022-06-14T18:44:36.000Z2022-06-15T17:06:14.000Z
Fail to authenticate using external okta saml IdP with non email format username

I think it might be an okta internal bug.

There are two okta servers. One server works as an external IdP, the other server has an application that user uses.

If username in the external IdP has email format, It works as expected. Creates the same user account in the main server and the users can keep accessing the main server with the external SAML assertion.

But if username in the external IdP doesn't have the email format, these users can't login even though the user accounts were created at first attempt. So users can login only at first time.

From second attempt to login,

UI shows:

Login Failed

400: Bad Request Error Code: GENERAL_NONSUCCESS

And error message was found in System log :

ErrorMessage = > with the following validation errors: login field failed validation with value 'test.test11': An object with this field already exists in the current organization.<br/>

Does anyone knows why only users with non email format username can't login?


  • Paul S. (Okta, Inc.)

    Hello @User16339976601819460220 (Customer)​ Thank you for reacting out to our Community!

     

    Users that do not have an email format can Sign in, however if the user has testuser1@domain.com and there is another user with testuser1@company.com, then in this case the user can not use testuser1 to sign in because the system does not know which user to authenticate.

    The error provided indicates that username already exists and because of that the sign in fails.

     

    Hope this helps and if this answered your question, please mark this as Best Answer! 

    Expand Post
This question is closed.
Loading
Fail to authenticate using external okta saml IdP with non email format username