loldevs / riotapi

A general purpose api for all things riot
loldevs.github.io
Apache License 2.0
48 stars 14 forks source link

Singapore Login doesn't work #29

Open MaxiBoether opened 10 years ago

MaxiBoether commented 10 years ago

Hey,

I've been trying to connect to the SG Garena server with my Garena credentials that DO work in the Garena client and Garena SG LoL Forums, but still I always receive: Exception in thread "main" net.boreeas.riotapi.com.riotgames.platform.account.management.InvalidCredentialsException at net.boreeas.riotapi.loginqueue.LoginQueue.getAuthToken(LoginQueue.java:58) at net.boreeas.riotapi.loginqueue.QueueTimer.run(QueueTimer.java:89)

My credentials are 100% correct, checked multiple times. Connecting to XMPP with those credentials works too, must be a riotapi problem. My Java code: sgClient = new AlertClient(Shard.SG, ChatServer.SEA, "username, eg. Mayesters", "password"); try { sgClient.connect(); } catch (NoServerSpecifiedException | InterruptedException e) { log(stackTraceToString(e), LogLevel.ERROR); }

(Custom Methods etc., just posted them to be complete) Do Garena credentials need to be altered in some way?

Sincerely, Mayesters

strangeglyph commented 10 years ago

As far as I'm aware, the Garena regions use a lightly different login process, but I haven't had a garena account to test it with. If you want to help, it would be great if you could do some digging: Could you install a network monitoring tool like netmon and see where the client connects to during the login process?

MaxiBoether commented 10 years ago

I'll do that later today when I come home, but the problem with Garena is that you have the Garena+ launcher and this launcher opens LoL. So should I capture the whole process or just the LOL Launcher (you dont log in in the lol launcher, garena does that for you)?

I am not that pro of a dev, I am sorry :(

Am 22.09.2014 um 05:34 schrieb Boreeas notifications@github.com:

As far as I'm aware, the Garena regions use a lightly different login process, but I haven't had a garena account to test it with. If you want to help, it would be great if you could do some digging: Could you install a network monitoring tool like netmon and see where the client connects to during the login process?

— Reply to this email directly or view it on GitHub.

strangeglyph commented 10 years ago

Capture the whole process, the login is the interesting part

MaxiBoether commented 10 years ago

I did capture it, the Garena login seems to be very complicated (Binary based) and everything on the web is outdated. If you hit me up on IRC we can have a look, maybe. I can't solve this for myself. https://github.com/achimala/leaguelib/blob/master/src/com/gvaneyck/rtmp/LoLRTMPSClient.java If you look at the getGarenaToken function you'll see what I mean. But this function is outdated, it does work until the league auth servers tho.