The-Firexx / trackmania2020apidocumentation

DEPRECATED! VISIT https://webservices.openplanet.dev/ (by codecat) Trackmania 2020 Unofficial API Documentation
https://webservices.openplanet.dev/
43 stars 6 forks source link

Authentication #11

Closed voblivion closed 3 years ago

voblivion commented 3 years ago

Hey!

It seems authentication process has changed and I can't find a solution by myself.

For level 0 I tried the following Ubi-AppId with success:

However for level 1 it doesn't seem to be working anymore. I suspect the url has changed (previously http://prod.trackmania.core.nadeo.online/v2/authentication/token/ubiservices). I tried sniffing DNS requests from the game, best I could find was the domain http://live-services.trackmania.nadeo.live but I can't see the actual request. I also tried some man-in-the-middle attack to read HTTPS contents but Uplay/Ubisoft-Connect doesn't seem to be working with a windows proxy =/ now I'm tempted to setup some proxy on my rpi to do it but I'm a noob with anything related to admin-sys and I suspect there is a better solution.

Thanks for your work! vob / Victor

voblivion commented 3 years ago

It seems from this page's source that Trackmania's AppId is 86263886-327a-4328-ac69-527f0d20a237 which matches the one used by this repo and https://github.com/breeku/trackmania-api-node repository. Unsure why yet but it gives a 4000 error there.

voblivion commented 3 years ago

After further investigation, mixing :

seems to do the trick :)