fix(EU): update KIA/Hyundai authentication for new API endpoints#300
Conversation
KIA and Hyundai changed their EU authentication system, breaking existing login functionality with 401 Unauthorized errors. This implements the new authentication flow based on the updated API endpoints. Changes: - Update authentication hosts: eu-account.*.com → idpconnect-eu.*.com - Update KIA client ID to new value (fdc85c00-0a2f-4c64-bcb4-2cfb1500730a) - Implement new 3-step OAuth2 flow with connector session keys - Remove language endpoint call that now requires pre-authentication - Update token exchange to use new idpconnect-eu endpoints - Remove unused imports and helper functions The new authentication flow: 1. GET auth URL to extract connector_session_key from redirect 2. POST credentials to new signin endpoint with session key 3. Extract authorization code from redirect location header 4. Exchange code for tokens using new token endpoint Fixes authentication issues for EU region KIA and Hyundai users. Tested with KIA EU account - login, vehicle discovery, and status retrieval all working correctly.
|
Thanks a lot for that ! |
|
Good job. You were faster then me :) |
|
If the release takes longer, is there a way to get an existing installation running again? |
|
I think it depends on the way you are using bluelinky on the procedure how to use dirkjanfabers code. I copied his code, ran the build script and moved the new dist files to my ha server
…________________________________
Van: Lazgar ***@***.***>
Verzonden: Sunday, August 10, 2025 8:42:07 PM
Aan: Hacksore/bluelinky ***@***.***>
CC: PierreLevres ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [Hacksore/bluelinky] fix(EU): update KIA/Hyundai authentication for new API endpoints (PR #300)
[https://avatars.githubusercontent.com/u/34341913?s=20&v=4]Lazgar left a comment (Hacksore/bluelinky#300)<#300 (comment)>
If the release takes longer, is there a way to get an existing installation running again?
—
Reply to this email directly, view it on GitHub<#300 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AO7MCG7GDVWZP4MJWM5M4433M6G77AVCNFSM6AAAAACDNHHEQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNZSHAZDCNJTGM>.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
@PierreLevres I have no idea how to do that, could you maybe share the files here? |
Sadly, I don't have the authorizations on this repository 😞 What one can do in the meantime (requires some tech knowledges) :
|
|
This is on my radar and will get it released sometime soon. |
|
Thanks @dirkjanfaber for the work here! LGTM and ill make a release for 10.0.0 |
|
Confirmed working for Kia EU. Thx everyone! |
|
Confirmed too with my Niro, thanks @dirkjanfaber @Hacksore ! |
|
Working great. Thanks
Op wo 13 aug 2025 om 10:23 schreef gruijter ***@***.***>:
… *gruijter* left a comment (Hacksore/bluelinky#300)
<#300 (comment)>
Confirmed working for Kia EU. Thx everyone!
—
Reply to this email directly, view it on GitHub
<#300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASXZGH35CYD64ZZ7EAA7OBT3NLYZLAVCNFSM6AAAAACDNHHEQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOBSG4YTSMBVGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
On Hyundai EU, this resulted for me in an error: |
Hyundai EU reverted to the old endpoints. So use bluelunky v10 for Kia EU and v9 for Hyundai EU. |
KIA and Hyundai changed their EU authentication system, breaking existing login functionality with 401 Unauthorized errors. This implements the new authentication flow based on the updated API endpoints.
Changes:
The new authentication flow:
Fixes authentication issues for EU region KIA and Hyundai users.
Tested with KIA EU account - login, vehicle discovery, and status retrieval all working correctly.
Resolves issue #295