jonasman / TeslaSwift

Swift library to access the Tesla API
MIT License
247 stars 71 forks source link

OAuth authentication broken on initial request #85

Closed Kemmey closed 3 years ago

Kemmey commented 3 years ago

Hey João,

This morning it seems Tesla made some changes to their authentication servers yet again - breaking the common OAuth implementation.

It's broken in my apps, and it's broken in the apps that I know use this library. As well as Remote S and possibly others.

Just a heads up!

I was browsing through the Tim Dorr repo discussions, but was unable to find anything actionable :-(

Regards,

Kim

jonasman commented 3 years ago

Thanks for the heads up! Lets try to fix it asap

Sent from my iPhone

On 9 May 2021, at 11:32, Kim Hansen @.***> wrote:



Hey João,

This morning it seems Tesla made some changes to their authentication servers yet again - breaking the common OAuth implementation.

It's broken in my apps, and it's broken in the apps that I know use this library. As well as Remote S and possibly others.

Just a heads up!

I was browsing through the Tim Dorr repo discussions, but was unable to find anything actionable :-(

Regards,

Kim

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/jonasman/TeslaSwift/issues/85, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANOMXXPDWJXHF3TRI7CIH3TMZCBTANCNFSM44OXJ4EA.

Kemmey commented 3 years ago

NP

Been banging on it for a few minutes this morning - but have family obligations today! (Am in CET time zone)

I tried new user agent string - no luck. I tried to change tls to 1.2, but couldn't figure out how to do that.

I tried changing "state" param - no dice

Kemmey commented 3 years ago

I see some mention of sha256 being upped to 512? So possibly the code challenge needs to be updated

Kemmey commented 3 years ago

FYI - official app is broken too, now.

Don't logout to verify - you'll lose access to your car like I did :-D

Kemmey commented 3 years ago

Hey @jonasman - login seems to have been restored from Tesla's end now!

jonasman commented 3 years ago

hah great :)