audi_connect_ha: Login has changed after maintenance (no longer works)
It would seem that Audi has changed the login over the last maintenance period, and the integration is no longer able to login.
Log Details (ERROR)
Logger: custom_components.audiconnect.audi_connect_account
Source: custom_components/audiconnect/audi_connect_account.py:93
Integration: Audi Connect (documentation)
First occurred: August 10, 2020, 8:19:13 AM (777 occurrences)
Last logged: 6:35:25 AM
Login to Audi service failed, trying again in 10 seconds
Login to Audi service failed: 400, message='', url='https://id.audi.com/v1/token
Everything was fine with my car yesterday, but today after the maintenance I can no longer login, incidentally when I attempt to login via myAudi, the login is different and after the maintenance the existing session was logged out, with a session expired message.
I guess that is what is causing this on login attempts.
Up until today, it has worked flawlessly for me, (albeit with trouble caused only by me!)
Hope this helps
Shunts…
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 52
This Integration was originally using the audiapi library, however, last time Audi changed everything there seemed to be little activity there and I had to completely rewrite both the login and all requests.
As has been noted before, the login mechanism changed completely and it is much more than simply swapping urls.
As I currently don’t have access to an android phone, it is hard to reverse engineer the app. However, it seems that davidgiga1993 from the audiapi lib has the new login working now in a testing branch. I’ll try to find some time next week to test this and try to integrate it.
Hi Same here. Indeed they announced a large update and it seems the integration no longer works;-( pitty . Jacques
@arjenvrh the question was for you, ‘is there any possibilty that your are going to have a look at this?’ … sorry @shuntfield 😉
Good to hear it works! Thanks for all the feedback and many thanks to @shuntfield and @tmooz for the beers, I’ll try not to drink them all at once! 😃
I’ve updated the login with the infos that the audiapi guys found in the thread mentioned by @shuntfield. Please try it and report back here in case of any issues.
The login has become a soup of redirects and queries, only time will tell how stable the integration will run as a consequence. I might add token refreshing to support more regular updates.
The good news is that all else seems to be the same, I’ve even been able to lock the car using the tokens obtained during the login procedure.
yeah, so this code needs to be changed too, its just not like a new “audiapi” release
see here , allthough if fixed, not sure how to implement it in this custom ?
https://github.com/davidgiga1993/AudiAPI/issues/13
Here is the json @pergolafabio was referring to:
{ "issuer": "https://identity.vwgroup.io", "authorization_endpoint": "https://identity.vwgroup.io/oidc/v1/authorize", "token_endpoint": "https://app-api.my.audi.com/myaudiappidk/v1/token", "revocation_endpoint": "https://app-api.my.audi.com/myaudiappidk/v1/revoke", "end_session_endpoint": "https://identity.vwgroup.io/oidc/v1/logout", "jwks_uri": "https://identity.vwgroup.io/oidc/v1/keys", "userinfo_endpoint": "https://identity-userinfo.vwgroup.io/oidc/userinfo", "response_types_supported": ["code", "token", "id_token", "code token", "code id_token", "token id_token", "code token id_token"], "subject_types_supported": ["public"], "id_token_signing_alg_values_supported": ["RS256"], "code_challenge_methods_supported": ["S256"], "scopes_supported": ["aboutMe", "address", "affinity", "badge", "battery", "birthdate", "birthplace", "carConfigurations", "carMeasurements", "cars", "charging", "climatisation", "dealers", "doors_windows", "driversLicense", "ecus", "email", "errors", "fuelLevels", "gallery", "intExtTemperature", "lock_unlock", "manageCharging", "manageClimatisation", "manageDestinations", "mbb", "mileage", "name", "nationalIdentifier", "nationality", "navigation", "nickname", "openid", "parking_position", "phone", "picture", "preferred_language", "profession", "profile", "range", "vehicleLights", "vehicleOnlineCapabilities", "vin", "warning_lights", "we_connect_vehicles", "wl_raw"], "claims_supported": ["iss", "sub", "aud", "iat", "exp", "nonce", "name", "email", "email_verified", "phone_number", "phone_number_verified", "updated_at"], "grant_types_supported": ["access_token", "refresh_token", "authorization_code", "client_credentials"], "ui_locales_supported": ["bg", "bs", "cs", "cs-CZ", "da", "da-DK", "da-GL", "de", "de-AT", "de-BG", "de-CH", "de-DE", "de-LI", "de-LU", "de-PL", "el", "el-CY", "el-GR", "en", "en-AE", "en-AL", "en-AM", "en-AU", "en-AZ", "en-BA", "en-BG", "en-BH", "en-BN", "en-BW", "en-CA", "en-CL", "en-CN", "en-CY", "en-DK", "en-FI", "en-GB", "en-GE", "en-GI", "en-GL", "en-GR", "en-HU", "en-ID", "en-IE", "en-IL", "en-IN", "en-IS", "en-JO", "en-KW", "en-KZ", "en-LS", "en-LT", "en-LV", "en-MD", "en-ME", "en-MK", "en-MT", "en-MY", "en-MZ", "en-NA", "en-NO", "en-NZ", "en-OM", "en-PH", "en-QA", "en-RO", "en-RS", "en-SA", "en-SE", "en-SG", "en-SG", "en-SK", "en-TH", "en-TW", "en-UA", "en-US", "en-UZ", "en-ZA", "es", "es-AD", "es-AR", "es-CL", "es-ES", "es-IC", "es-MX", "es-MX", "et", "et-EE", "fi", "fi-FI", "fr", "fr-AD", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "fr-LU", "fr-MC", "hr", "hr-HR", "hu", "hu-HU", "is", "it", "it-CH", "it-IT", "it-SM", "it-VA", "ja", "ja-JP", "ko-KR", "lt", "lt-LT", "lv", "lv-LV", "mk", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-BR", "pt-PT", "ro", "ru", "ru-BY", "ru-BY", "ru-RU", "ru-UA", "sk", "sk-SK", "sl", "sl-SI", "sq", "sr", "sv", "sv-SE", "tr", "tr-TR", "uk", "zh", "zh-CN", "zh-TW"], "acr_values_supported": ["https://identity.vwgroup.io/assurance/loa-2", "https://identity.vwgroup.io/assurance/loa-3"], "token_endpoint_auth_methods_supported": ["client_secret_post", "client_secret_basic"] }
Thanks for everyone confirming as well. It seems that the new audi login goes via some VW portal now. You get the same data but the login is different. If you go to myAudi, it redirects you.
Shunts…
Had the same thing happen to me I am afraid
Same here