marvi wrote:themendios wrote:Okay I need a little help understanding your auth process sorry! Shouldn't need hand-holding once I get past this part, I don't know why it's taking so much effort, probably because I'm not incredibly comfortable with SSL and am afraid I'm messing that part up.
If I have the SSL set up and handshake complete (according to reflection), if I understand your code correctly I should send a [0][length of username][username utf-8] byte array and get back a 2-byte header that starts with [0] right? Then eventually get a token etc.
I'm sending successfully but then never get anything back, not even the 2-byte header. I don't know what I'm not getting on your code I've been through it 20 times.
Some time ago, having the same issue I [almost] blindly rewrote original Java code. :]
Here the authentication code snippet which works for me: link. Hope this helps.
Very very nice ty. I was afraid after cutting out 768 line numbers (argh) it wouldn't work but it does.
I see a few differences where you basically shortcut the SSL (no client cert, blank targethost) somehow they add up to it working, I'm happy!
Also loftar I'm not that wet behind the ears to forget to flush! haha