-
Notifications
You must be signed in to change notification settings - Fork 31
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
New oauth2 token for MFA (existing auth not working) #31
Comments
Presumably we'll just need to update the token authentication at: Appears to be information about how to implement this at: timdorr/tesla-api#215 Feel free to play around and try to get it working. Otherwise, I'll try to have a look in a few weeks. |
The challenge is to obtain the token in the first place (at least in a server based environment). Username and password alone are not going to cut it anymore without the 2nd factor. Additionally the (new) oauth2 based tokens are only valid for 300 seconds. With the trick described in timdorr/tesla-api#215 you can obtain the old style tokens which a valid for 45 days. A more desirable duration for server based applications. |
Right, sounds like the MFA token is an initial auth token, which can then be used to request a long-lived token from the token endpoint. So, first step is to add a method to handle the MFA, which sounds like it requires returning a URL to the user to authenticate. |
Right. Thanks all for the info! I assume no one has a Java implementation laying around? :-D To the keyboard then. TeslaTasks is starting to stumble as well. |
It seems the auth have stopped working at all. The contents of {'response': 'endpoint_deprecated:_please_update_your_app.'} |
Tesla has stopped the old API. Accounts with MFA active still work through the v3 API, I have not been able to get non MFA account working yet. |
Hi, any news on this issue? |
#39 perfectly worked for me as @Dreamsorcerer said |
I've only got the MFA version working for teslatasks. But I figure it's not such a bad thing. |
I've had this working for a few weeks now with all my old endpoints, but there seems to be a new issue as of this morning. Have raised #43 |
Having the same issue as @scienceintheshed as well. All worked well for a few weeks until recently. |
Yup. My Java version of TeslaAPI is getting a 403 now as well. Seems Tesla is slowly moving things over to something new. It also seems that any already obtained long lived tokens are still working. Changing the authorize and token URL to "v1" instead of "v3" fixes things. |
A few weeks ago Tesla introduced MFA (Multi Factor Authentication) which essentially breaks this lib when the Tesla customer has MFA activated. Please fix.
The text was updated successfully, but these errors were encountered: