skodaconnect / homeassistant-skodaconnect

Skoda Connect - A home assistant plugin to add integration with your car
Apache License 2.0
233 stars 28 forks source link

Login failed - Missing consent for client "technical" scopes: profile #194

Closed b-reich closed 1 year ago

b-reich commented 1 year ago

Describe the bug Login into the HA Integration failed. Got Could not login to Skoda Connect, please check your credentials and verify that the service is working

**Is this working in MySkoda app?*** Login on MySkoda on iOS and Android Works

Latest working release

Debug logs

2023-05-13 08:33:12.080 DEBUG (MainThread) [custom_components.skodaconnect.config_flow] Creating connection to Skoda Connect
2023-05-13 08:33:12.082 INFO (MainThread) [skodaconnect.connection] Unofficial Skoda Connect library, version 1.3.5
2023-05-13 08:33:12.083 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de
2023-05-13 08:33:12.088 INFO (MainThread) [skodaconnect.connection] Initiating new login
2023-05-13 08:33:12.090 DEBUG (MainThread) [skodaconnect.connection] Starting authorization process for client technical
2023-05-13 08:33:12.653 DEBUG (MainThread) [skodaconnect.connection] User is not logged on, use signin service
2023-05-13 08:33:12.692 DEBUG (MainThread) [skodaconnect.connection] Found HTML credentials form, extracting attributes
2023-05-13 08:33:12.693 DEBUG (MainThread) [skodaconnect.connection] Start login process for user  xxxx@mail.de
2023-05-13 08:33:12.838 DEBUG (MainThread) [skodaconnect.connection] Found dynamic credentials form, extracting attributes
2023-05-13 08:33:12.839 DEBUG (MainThread) [skodaconnect.connection] Script JSON data: {'clientLegalEntityModel': {'clientId': 'f9a2359a-b776-46d9-bd0c-db1904343117@apps_vw-dilab_com', 'clientAppName': 'ŠKODA App & Portal', 'clientAppDisplayName': 'ŠKODA App & Portal', 'legalEntityInfo': {'name': 'ŠKODA', 'shortName': 'SKODA', 'productName': 'ŠKODA ID', 'theme': 'skoda_2023', 'defaultLanguage': 'cs', 'termAndConditionsType': 'DEFAULT', 'legalProperties': {'revokeDataContact': 'id@skoda-auto.cz', 'imprintText': 'IMPRINT', 'countryOfJurisdiction': 'CZ'}}, 'legalEntityCode': 'skoda', 'imprintTextKey': 'imprint.link.text'}, 'template': 'loginAuthenticate', 'hmac': '18ccd938a73ce1b44b51787063f75d9e01e2d9c87e340e7caf8461efcbde32cf', 'useClientRendering': True, 'titleKey': 'title.login.password', 'title': None, 'emailPasswordForm': {'@class': 'com.volkswagen.identitykit.signin.domain.model.dto.EmailPasswordForm', 'email': ' xxxx@mail.de', 'password': None}, 'error': None, 'relayState': '755271edb417827f694ea83d9ee7c21c17809619', 'nextButtonDisabled': False, 'enableNextButtonAfterSeconds': 0, 'postAction': 'login/authenticate', 'identifierUrl': 'login/identifier'}
2023-05-13 08:33:12.840 DEBUG (MainThread) [skodaconnect.connection] Finalizing login
2023-05-13 08:33:13.337 DEBUG (MainThread) [skodaconnect.connection] Found HTML credentials form, extracting attributes
2023-05-13 08:33:13.338 INFO (MainThread) [skodaconnect.connection] Consented scopes: openid mbb, not consented: profile
2023-05-13 08:33:13.338 ERROR (MainThread) [skodaconnect.connection] Missing consent for client "technical" scopes: profile
2023-05-13 08:33:13.344 ERROR (MainThread) [custom_components.skodaconnect.config_flow] Login failed with error: Missing consent for client "technical" scopes: profile

Installation:

Additional context Just replace my mail with xxxx@mail.de

b-reich commented 1 year ago

Probably something is missing in my accout, but unfortunately I don't know what.

Farfar commented 1 year ago

Can you try logging on through Android My Skoda app?

b-reich commented 1 year ago

Can you try logging on through Android My Skoda app?

Yes, I can try to login again on android later. The MySkoda App is fine? Not the Connect one.

b-reich commented 1 year ago

Can you try logging on through Android My Skoda app?

The error unfortunately still occurs

Farfar commented 1 year ago

Can you try logging on through Android My Skoda app?

The error unfortunately still occurs

Try bot apps and also the web app. The error is because you haven't given consent to something regarding your profile that the integration makes use of. You might need to test an older version of the android app since there's been a number of changes to it recently.

b-reich commented 1 year ago

Can you try logging on through Android My Skoda app?

The error unfortunately still occurs

Try bot apps and also the web app. The error is because you haven't given consent to something regarding your profile that the integration makes use of. You might need to test an older version of the android app since there's been a number of changes to it recently.

Logging in to MyŠkoda Essentials then to the HA integration works :)

b-reich commented 1 year ago

Thank for the fast response!

Farfar commented 1 year ago

Thank for the fast response!

No problem, happy to help 🙂