stoken-dev / stoken

RSA SecurID-compatible software token for Linux/UNIX systems
http://stoken.sf.net
GNU Lesser General Public License v2.1
411 stars 78 forks source link

iPhone token - Device ID mismatch #65

Open nkormakov opened 3 years ago

nkormakov commented 3 years ago

I got a problem importing a token, I received it a while ago and successfully imported in RSA app in iPhone and it's working fine till this very day Received token header is looks exactly like that: com.rsa.secureid://ctf?ctfData=____81 symbols__ And device ID looks like this in app: 0123 4567 89AB CDEF 0123 4567

I'm typing it in when prompted like this: 0123456789ABCDEF01234567

and getting "Device ID does not match the token."

What I've tried so far: different headers: with 127.0.0.1 in them, com.rsa.secureid.iphone://ctf?ctfData=, none of them different cases for Device ID, spaces - still nothing

I commented the code to bypass this Device ID check and found that parsing is ok - I see correct serial number and expiration date

so i'm open to any advices

mcraveiro commented 3 years ago

Sounds like https://github.com/cernekee/stoken/issues/24.

nkormakov commented 2 years ago

Sounds like #24.

yep, but this issue was resolved by using full URL provided

Issue resolved, had to use the full url as the token and not just numbers.

My full URL is different from Android version, so it's possible that iPhone app make something differently with initialization token

nkormakov commented 2 years ago

Maybe @cernekee got some ideas? I'll code them by myself, kinda lost at this point and I got only one test-string for iOS, no Android