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

Fix #514 Genesis EU authentication (needs review) #638

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RobXYZ
Copy link

@RobXYZ RobXYZ commented Sep 27, 2024

This is a fix for #514

I initially tried to adjust the existing auth flow but couldn’t get it to work so started from scratch. I recorded the API and reproduced the HTTP requests in a test script then incorporated it. I am not sure if all steps are required.

Apologies if the code is messy, I don’t fully understand the API or library and used ChatGPT to mash it all together. This code works for Genesis but may have broken the other brands. Hopefully it’s a start and someone with better knowledge and skills can take a look through and tidy it up or suggest changes before merging.

@cdnninja
Copy link
Collaborator

cdnninja commented Oct 4, 2024

This does break other brands as you can see from the failed test build, that calls a real car.

This code will need to be aligned to existing if close enough logic, which it appears to be. If drastically different a new class needs to be defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants