ugumba / homey-panasonic-comfort-cloud-alt

GNU General Public License v3.0
14 stars 5 forks source link

bad credentials, but... #22

Open mostlyflawles opened 1 week ago

mostlyflawles commented 1 week ago

I get "bad credentials" but I can login at https://accountglb.digital.panasonic.com with out any issues. And https://accountglb.digital.panasonic.com seems to have MFA which I can't turn off.

Any idea what the issue might be? Does this app support MFA?

2024-10-16T16:36:42.113Z [log] [MyApp] MyApp has been initialized 2024-10-16T16:36:45.276Z [log] [ManagerDrivers] [Driver:aircon] Driver has been initialized 2024-10-16T16:49:46.712Z [log] [ManagerDrivers] [Driver:aircon] settings.set 2024-10-16T16:49:46.762Z [log] [ManagerDrivers] [Driver:aircon] resetClient 2024-10-16T16:49:46.804Z [log] [ManagerDrivers] [Driver:aircon] settings.set 2024-10-16T16:49:46.816Z [log] [ManagerDrivers] [Driver:aircon] resetClient 2024-10-16T16:50:35.237Z [log] [ManagerDrivers] [Driver:aircon] onPairListDevices 2024-10-16T16:50:45.624Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.21.1) 2024-10-16T16:50:45.692Z [log] [ManagerDrivers] [Driver:aircon] authenticating me[dot]the[at]world.com 2024-10-16T16:50:52.829Z [err] [ManagerDrivers] [Driver:aircon] login failed: Error: code is null. at OAuthClient.oAuthProcess (/node_modules/panasonic-comfort-cloud-client/dist/src/OAuthClient.js:66:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ComfortCloudClient.login (/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:61:27) at async MyDriver.getClient (/drivers/aircon/driver.js:84:17) at async MyDriver.invokeClient (/drivers/aircon/driver.js:100:26) at async MyDriver.onPairListDevices (/drivers/aircon/driver.js:172:24) 2024-10-16T16:50:52.884Z [err] [ManagerDrivers] [Driver:aircon] bad credentials 2024-10-16T17:01:31.069Z [log] [ManagerDrivers] [Driver:aircon] settings.set 2024-10-16T17:01:31.116Z [log] [ManagerDrivers] [Driver:aircon] resetClient 2024-10-16T17:02:59.090Z [log] [ManagerDrivers] [Driver:aircon] onPairListDevices 2024-10-16T17:02:59.526Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.21.1) 2024-10-16T17:02:59.543Z [log] [ManagerDrivers] [Driver:aircon] authenticating me[dot]the[at]world.com 2024-10-16T17:03:01.469Z [err] [ManagerDrivers] [Driver:aircon] login failed: ServiceError: Request failed with status code 401 statusCode=401,code=Unauthorized,msg=Login ID or password is incorrect. at ComfortCloudClient.handleError (/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:147:31) at ComfortCloudClient.login (/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:66:18) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async MyDriver.getClient (/drivers/aircon/driver.js:84:17) at async MyDriver.invokeClient (/drivers/aircon/driver.js:100:26) at async MyDriver.onPairListDevices (/drivers/aircon/driver.js:172:24) { _code: 'invalid_user_password', _httpCode: -1 } 2024-10-16T17:03:01.519Z [err] [ManagerDrivers] [Driver:aircon] bad credentials

ugumba commented 1 week ago

Not sure what happens in your case - both the Homey app and the web site works as expected for me, using the exact same credentials.

The client package used by the app to authenticate was updated earlier this year to support Panasonic's new auth flow - which is more secure, but doesn't require MFA. I assume you're using the current version from the GitHub repo?

I'm sure you've made sure to type/paste the password correctly (no trailing space, for example)?

ugumba commented 1 week ago

Hmm, I just realized I didn't need 2FA to sign in to the web page. I don't really want to click the "reset MFA" link... What does "setup login methods" show for you? I only have email enabled.

mostlyflawles commented 1 week ago

Set up the login method Screenshot_1 Reset two-factor... Screenshot_2

PW - Yes, I tried again and i'm quite sure I got it right. Clarification, I just got my Panasonic so this is a first time setup.

ugumba commented 1 week ago

Have you logged in with these credentials in the Panasonic Comfort Cloud mobile app (Apple or Android)?

There are terms & conditions that need to be accepted before the account is authorized to do anything. I've only seen these T&C in the mobile app (and the Homey app wouldn't know how to present them).


From: mostlyflawles @.> Sent: Friday, October 18, 2024 12:30 To: ugumba/homey-panasonic-comfort-cloud-alt @.> Cc: Robert Schmidt @.>; Comment @.> Subject: Re: [ugumba/homey-panasonic-comfort-cloud-alt] bad credentials, but... (Issue #22)

Set up the login method Screenshot_1.png (view on web)https://github.com/user-attachments/assets/cbcce351-43d4-4d3a-93d9-ccbbfeab7318 Reset two-factor... Screenshot_2.png (view on web)https://github.com/user-attachments/assets/ab864122-3cb9-4bf5-8449-c82ec911ee3b

PW - Yes, I tried again and i'm quite sure I got it right. Clarification, I just got my Panasonic so this is a first time setup.

— Reply to this email directly, view it on GitHubhttps://github.com/ugumba/homey-panasonic-comfort-cloud-alt/issues/22#issuecomment-2422140370, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGB2OMRJSPXZQRLORVAV7LZ4DPOFAVCNFSM6AAAAABQB6H62WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRSGE2DAMZXGA. You are receiving this because you commented.Message ID: @.***>

Kind regards, Robert Schmidt Principal Software Engineer / +47 93 89 65 93 / Cegal AS

mostlyflawles commented 1 week ago

Yes, I have, but.. it might be that I initiated it by using a google-SSO, later on I changed it to "only-email" . So now I've logged out and in the app (did not have to accept any T&C) and retested this in the Homey app, the issue remains.