iosibm-mobilefirstmobilefirst-servermobilefirst-studio

iOS App with IBM MobileFirst server , issue {"error_description":"Client authentication failed","error":"invalid_client"}


In Production, IBM MobileFirst server running with version 7.1.0.00.20180425-1124 and Project war file with version 7.1.0.00.20180425-1124.

Recent deployment of project war was deployed with 7.1.0.00.20161006-0540, unfortunately.

iOS throws below error:

{"error_description":"Client authentication failed","error":"invalid_client"}

Rolled back the deployment to avoid issues.

While investigating, there was an APAR with similar fix but the version used in the deployment doesn't include this APAR.

Question 1: If same version(7.1.0.00.20180425-1124) of MF Plugin used to build Project .war, will this issue be addressed.

Question 2: Where can I download the Eclipse Plugin of 7.1.0.00.20180425-1124?

Thanks in advance


Solution

  • Finally achieved by clearing out the keychain items and defaults which work light library has been internally maintaining.

    So what's happening behind the scenes is the work light client is creating and maintaining some keychain items and also few user defaults. This is done for storing some information like session id's and stuff. Sometimes the data in the keychain or defaults is getting corrupted during the initial work light handshake with MFP server. In this scenario we get the above error. Once we clear them out and kill the app and launch again. the app will now behave as a new device.