trocotronic / weconnect

API to interact with Volkswagen's service We Connect (formerly CarNet)
Open Data Commons Open Database License v1.0
83 stars 17 forks source link

Purpose of native api tokenexchange? #1

Closed andig closed 3 years ago

andig commented 4 years ago

Great work, thank you very much! This repo is the only source I could find that details the new ID vehicles native login flow- much appreciated!

I've been playing a bit with it and couldn't really find the need for tokenrefreshservice.apps.emea.vwapps.io/exchangeAuthCode. When I remove the request from the flow it seems to work just as well? It seems the id token obtained here is identical to the identity kit's token.

The api and login flow also apply to Audi, only the initial login steps are different. If interested in the details please let me know.

MyGitIT commented 3 years ago

Hi andig, I'am intrested in the details, my WebAPI is running well, but I want to use the native API. Do you have an running example of the native API? And th information what to change rgarding the Token? THX MyGitIT

trocotronic commented 3 years ago

exchangeAuthCode delivers some tokens that are used by several methods in NativeAPI (get_users actually).