You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Thrift that I've built using the latest netcore bits to generate a client. The methods accessing actordb seem to work, as in, I can login with the usual login(username,password method just fine.
However, I'm trying to implement login using the salted 411 password and failing miserably. I've taken the algorithm for 411 scrambling directly from MySqlConnector for .NET as a starting point. Once I have the final hash byte array, every thing I've attempted to return it to a string that will be recognized by the thrift client has failed. I only see a single login method in Thrift so I assume I can pass the stringified byte array into that.
I've tried byte[]->base64string, byte[]->hexstring with and without leading 0x, and raw UTF8 conversion. I am missing the encoding or something similar that ActorDB's Thrift interface is expecting the hash's string representation to be.
Agh this is a shortcoming on our side as we did not consider other languages enough. It actually expects password to be a direct binary not utf8, base64 or hex. This of course means its impossible to use from lots of languages that take their types more seriously.
And I'm back in business. This might not be a general fix for everyone but I don't see the harm for static languages. I'll just have to watch for changes to the official Thrift interface.
I'm using Thrift that I've built using the latest
netcore
bits to generate a client. The methods accessing actordb seem to work, as in, I can login with the usuallogin(username,password
method just fine.However, I'm trying to implement
login
using the salted 411 password and failing miserably. I've taken the algorithm for 411 scrambling directly from MySqlConnector for .NET as a starting point. Once I have the final hash byte array, every thing I've attempted to return it to a string that will be recognized by the thrift client has failed. I only see a singlelogin
method in Thrift so I assume I can pass the stringified byte array into that.I've tried byte[]->base64string, byte[]->hexstring with and without leading
0x
, and raw UTF8 conversion. I am missing the encoding or something similar that ActorDB's Thrift interface is expecting the hash's string representation to be.The text was updated successfully, but these errors were encountered: