Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySkoda #23

Open
mrubioroy opened this issue Aug 27, 2021 · 3 comments
Open

MySkoda #23

mrubioroy opened this issue Aug 27, 2021 · 3 comments
Labels
alt-cars Issues related to cars that are not in the ID. line enhancement New feature or request help wanted Extra attention is needed and help wanted from the community

Comments

@mrubioroy
Copy link

mrubioroy commented Aug 27, 2021

Hi,

I've got IDDataLogger working with an ID.4. I'm trying now with a Skoda Enyaq but it doesn't work out of the box.

I suspect the problem being with weconnect references in LOGIN_BASE and in subsequent parsing:

LOGIN_BASE = "https://login.apps.emea.vwapps.io/authorize?nonce=asdfsadf3&redirect_uri=weconnect://authenticated"

When I use skodaid, myskoda, or skodaconnect in place of weconnect, the response I get is:

{"error":"invalid_request","error_description":"Mismatching redirection URI"}

The URLs below allow to login with the browser, but they don't provide the token, because that's not included in the response_type parameter we get from the server.

https://vwid.vwgroup.io/oidc/login-user?prompt=login&qualifier=vwid
https://skodaid.vwgroup.io/oidc/login-user?prompt=login&qualifier=skodaid

Any idea on what should we need to use as redirect_uri for Skoda?

@mrubioroy
Copy link
Author

At EVCC there's code to connect to Skoda Enyaq. I'll try to make a patch for IDDataLogger.

@robske110
Copy link
Owner

I am definitely open for PRs adding support for other vwag vehicles, if the changes required for them are of reasonable size and scope.
It seems that EVCC is using a different method of authenticating to the VW api, which requires a client_id and seems to be more inline with a real openid authentication flow.

The biggest problem for me with adding support for cars I don't own is that I cannot test or help develop anything for them.

@robske110 robske110 added alt-cars Issues related to cars that are not in the ID. line enhancement New feature or request help wanted Extra attention is needed and help wanted from the community labels Aug 31, 2021
@mrubioroy
Copy link
Author

mrubioroy commented Oct 29, 2021

Here's another code accessing Skoda API. It looks pretty generic, able to access ID API, too:
https://github.com/lendy007/skodaconnect/blob/958c07ef0d73d4def100ba790a03503a67849ef5/skodaconnect/connection.py

I could provide you the credentials to my account to let you develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alt-cars Issues related to cars that are not in the ID. line enhancement New feature or request help wanted Extra attention is needed and help wanted from the community
Projects
None yet
Development

No branches or pull requests

2 participants