Passwords that use High ASCII characters

47 views
Skip to first unread message

Elias Lecomte

unread,
Apr 18, 2014, 11:46:29 AM4/18/14
to mobile-vikin...@googlegroups.com
Hi,

The mobile vikings website allows users to use high ASCII.  http://www.tamasoft.co.jp/en/general-info/ascii.html
However, when I try to use the api, for example via browser: https://mobilevikings.com/api/2.0/basic/sim_balance.json?add_price_plan=1&msisdn=+32472832475
It always fails even though my password is correct.
Could there be a bug in the authorization?

Thanks to look into this.

kevin....@mobilevikings.com

unread,
May 7, 2014, 9:11:53 AM5/7/14
to mobile-vikin...@googlegroups.com
Hi Elias,

We support extended characters in basic auth using latin-1 encoding. Because it's not clear which encoding to use in the standard, different browsers handle this in different ways. For example, Chrome will send UTF-8, whereas you should find visiting that link using Firefox will work. I have updated our API documentation to reflect this.

Hope that helps,
Kevin.

Elias Lecomte

unread,
May 29, 2014, 7:29:44 AM5/29/14
to mobile-vikin...@googlegroups.com
If I have an € in my password, even with firefox, for me it doesn't work. Can you do the same test and confirm it works? Thanks a lot.
If I use latin encoding and then base64 encode it, it doesn't work in my app neither.

authStringEnc = Base64.encodeToString(new String(authString.getBytes(), "ISO-8859-1").getBytes(), Base64.URL_SAFE);

Op woensdag 7 mei 2014 15:11:53 UTC+2 schreef kevin....@mobilevikings.com:

kevin....@mobilevikings.com

unread,
Jun 3, 2014, 4:07:07 AM6/3/14
to mobile-vikin...@googlegroups.com
Hi Elias, 

The euro sign is not included in the latin1 charset, so it is impossible to represent it. We encourage our API users to use our OAuth flow instead.

Regards,

Kevin.

Elias Lecomte

unread,
Jul 9, 2014, 5:51:43 AM7/9/14
to mobile-vikin...@googlegroups.com
Hi,

That explains it, thanks! If I have some time I will implement the oauth flow.

Op dinsdag 3 juni 2014 10:07:07 UTC+2 schreef kevin....@mobilevikings.com:
Reply all
Reply to author
Forward
0 new messages