-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
auth api failing with 1000-0999 error #44
Comments
my attempts to generate/guess/reuse state param for authglb endpoint fail with this error: anyone out there more familiar with this oauth2 aspect? |
Same error happening here. Thanks. |
the good news: this new authglb seems to allow multiple logins. at least when using google login which is an option now (apple id as well; need to register here - https://accountglb.digital.panasonic.com/social first) |
Thanks @viliusdidit for all the investigation so far, let's see what we can do. The ideal (in a happy world) solution would be for us to not need to use the username and password and being able to auth as a service/application to Panasonic cloud, get a token, and use that token, with the possibility of getting a refresh_token as well. Unfortunately I don't see that happening. |
hopefully you can make it happen for all of us somehow 🙌 |
In case it helps, I noticed this NPM library that takes a different approach: it "impersonates" the iOS app using a different set of APIs. Just sharing due to the lack of public documentation from Panasonic around their APIs. |
Hey guys, I found your issue by searching if someone fixed the new login way to Panasonic Cloud. As nobody did, here is the working code: I hope that helps! :) |
Thanks a lot @bimusiek, I'll take a look ASAP. |
@cjaliaga, I have seen that the fix has been implemented in dedicated branch. I don't know if there are some technical issues to be solved, but if you are afraid of exposing the hard-coded client id, maybe it can be provided by the user during the integration config flow. |
The clientId was copied from JS code of OAuth provider at Panasonic so you could fetch it from there. AFAIK it is Panasonic client id from their oauth provider so it is not secret and should not change. |
Thanks @lcavalli, as @bimusiek said this Client Id it's not a secret and shouldn't change. Thanks for stepping in 😊 I'm implementing it on this branch: Line 349 in 7ddd0ea
To give an update, I'm currently stuck on the response 3 (call with the username and password to https://authglb.digital.panasonic.com/usernamepassword/login). I'll need to check if I'm not sending all the required cookies, the json sent with aiohttp is not properly encoded, something else.. or there's something wrong with my username because the response I get from the endpoint is a I'll check with @bimusiek project and my username/password to discard that. |
Quick update, it was a silly mistake. Apologies on the slow pace as I'm doing my best mainly on the night on the few spare minutes I have this week, I'm exhausted at the end of the day and I end making this mistakes haha. My estimation is to have a working solution tomorrow for everyone to test it. |
Don't worry, we appreciate your efforts! |
Thanks @cjaliaga !! |
I have a working version, and I'm sure it will require some refactor but I think the best way is for us to test it and find the edge cases (and maybe not that edge haha) while using it so I'll release a new version with the changes. |
I am getting this:
|
@jp-embedded the first error should have been fixed in 0.7.1 The other ones Lines 299 to 317 in a8562de
I'll add verifications in between requests and more logging soon. |
0.7.1 works for me. Thank you so much <3 |
Thanks. Fix was faster then heishamon delivery. |
Same issue happened to me as it did for @vukisz. Entities were unavailable until I reloaded the integration. Now is working fine. |
Working! Thanks! |
I have a theory about why it didn't try to refresh the data, I think is due to token expiratio and some assumption I took for granted. I'll try to release a hotfix later today. |
Just merged #47 that should fix the refresh issue. Publishing 0.7.2 with the fix. |
0.7.1 works fine for me. |
March 18 around 00 UTC authentication to aquarea-smart.panasonic.com started failing.
likely due to API change?
cjaliaga/home-assistant-aquarea#105
I believe our connection string looks like this? any request to this enpoint seems to result in the same error/403:
FWIW - I was able to see web login process to https://authglb.digital.panasonic.com/usernamepassword/login, don't have a setup for sniff the mobile app atm:
The text was updated successfully, but these errors were encountered: