login issue with Mobile server protocol

Hi Sir,

I’d like to implement export video with mobile server protocol.

This function is running at linux, so I choose java to implement it.

But I met errorcode 16 while login.

I reference DemoApp js, but still struggle at login and credentials part with java.

I can get connectId and public key from server, and use those key to generate encrypted username and password, but it always return errorcode 16.

It is also fail even I use a way to call *.js at java code, ex: call encodeString function from DiffieHellman.js.

Does anyone use other language except javascript to implement login function?

​Or any idea of this issue?

Regards,

Yingchu

This is known to happen if you have an old MIP SDK, it is fixed in newer versions of the MIP SDK. I recommend that you check whether you are using an old MIP SDK and if you are then upgrade.

Alternatively the older MIP SDK will work if you enable “plain text authentication”.

https://force.milestonesys.com/support/articles/en_US/How_To/Set-up-the-Mobile-Server-to-use-plain-text-authentication