Working C#/.NET auth implementation, including support for MFA #308
tomhollander
started this conversation in
Show and tell
Replies: 1 comment
-
This library has now been updated to work with the new CAPTCHA on the login page. The login approach now requires showing an integrated web browser with Tesla's login UI; you can't show your own UI anymore. There is a WPF sample included showing how to do this. The library itself works on other platforms including Xamarin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For anyone wanting a reusable library for authenticating to the Tesla API in C# / .NET, look no further:
https://github.com/tomhollander/TeslaAuth/
This uses the .NET Standard libraries so should run on both .NET Core and the full .NET Framework. It also includes support for MFA. It doesn't include any wrappers for the Owner API, but once you get the auth tokens it's very easy to use them with direct API calls.
Thanks to @bassmaster187 who provided the foundation of this code in his TeslaLogger project.
If anyone has any feedback or bug reports, please let me know on my project page.
Beta Was this translation helpful? Give feedback.
All reactions