nVuln / homebridge-lg-thinq

A Homebridge plugin for controlling/monitoring LG ThinQ device via their ThinQ platform.
https://github.com/nVuln/homebridge-lg-thinq
Apache License 2.0
187 stars 49 forks source link

"Mismatching Redirect URI Error" #94

Closed coneybeare closed 2 years ago

coneybeare commented 2 years ago

Describe The Bug:

Trying to get redirect token, seeing "Mismatching Redirect URI Error" error.

To Reproduce:

 ruby 2.7.3p183@ ~  %  thinq auth -c US -l en-US
Log in here: https://us.m.lgaccount.com/spx/login/signIn?country=US&language=en-US&client_id=LGAO221A02&svc_list=SVC202&svc_integrated=Y&redirect_uri=https%3A%2F%2Fus.m.lgaccount.com%2Flogin%2FiabClose&show_thirdparty_login=LGE%2CMYLG%2CGGL%2CAMZ%2CFBK%2CAPPL&division=ha&callback_url=https%3A%2F%2Fus.m.lgaccount.com%2Flogin%2FiabClose&oauth2State=12345&show_select_country=N
Then paste the URL where the browser is redirected:

Screen Shot 2021-10-24 at 11 38 41 AM

Expected behavior:

I would expect the redirect to work

Logs:

N/A

Plugin Config:

N/A

Screenshots:

Environment:

nVuln commented 2 years ago

look like LG changed something on their server, you can use login command instead of auth to login

thinq login [username] [password] -c US -l en-US
ericnewcomer commented 2 years ago

I can confirm the same issue as @coneybeare. @nVuln, so does this mean only plain lg logins will work? I connect to thinkq via the Google account authentication, so seems using login isn't sufficient.

nVuln commented 2 years ago

I can confirm the same issue as @coneybeare. @nVuln, so does this mean only plain lg logins will work? I connect to thinkq via the Google account authentication, so seems using login isn't sufficient.

you should create new LG account and migrate all devices to new account at this time, we can't login as thirdparty service, LG changed their login system

malwcal commented 2 years ago

I might be wrong, but in the past I thought that I got this to work by setting up a second account with just a username/password, and then assigning access to the home from the google authenticated account to the new account. So this gives you the best of both worlds.

I have no idea if this still works. (Or if I am dreaming that this ever happened).

On 28 Oct 2021, at 15:17, nVuln @.***> wrote:

I can confirm the same issue as @coneybeare https://github.com/coneybeare. @nVuln https://github.com/nVuln, so does this mean only plain lg logins will work? I connect to thinkq via the Google account authentication, so seems using login isn't sufficient.

you should create new LG account and migrate all devices to new account at this time, we can't login as thirdparty service, LG changed their login system

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nVuln/homebridge-lg-thinq/issues/94#issuecomment-953521597, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJP3T2KQTSPZWVG4FQK4G3UJDPWLANCNFSM5GTSSBPQ.

ericnewcomer commented 2 years ago

I followed @malwcal 's advice and it worked for my situation. So probably not a dream after all!

malwcal commented 2 years ago

;)

To be honest I was fairly confident that’s what worked for me. But I never understood why more people hadn’t discovered this method.

To me it actually makes sense to do it this way: have a separate account for the HomeKit integration. And then use sign in with google/whatever for using the ThinQ app.

Actually in my case I have both an password account AND a sign-in-with google account using the same @gmail.com address. LG treats them as separate accounts.

@nVuln Does it make sense to update the documentation to let people know they can setup a second account to handle the case where they originally used a sign-in-with account?

nVuln commented 2 years ago

@malwcal yup, that is great solution, I'll update documentation when I have free time, thank you so much 🥰

cheetahbridge3 commented 3 months ago

@nVuln does the second account have to use the same email address? I'm asking because I used sign in w/ Apple and hide my email.

nVuln commented 3 months ago

@nVuln does the second account have to use the same email address? I'm asking because I used sign in w/ Apple and hide my email.

no need to use same email as 2nd account, just create new account by any email you have, make sure it's LG account