-
I've been trying to use this in an ASP.NET Core MVC application. The problem seems to be that there is no WebView control available in .NET Core. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @jnyeage - Unfortunately I don't believe it's possible to use the web-assisted auth flow from a website not controlled by Tesla. This isn't an ASP.NET limitation, but a consequence of the iframe sandbox security mechanism. A web page can embed the Tesla auth page in an iframe, but there's no way it can read the contents of the frame. The "headless" auth flow should work, but only when no CAPTCHA is displayed - and from what I've heard it's back. Tom |
Beta Was this translation helpful? Give feedback.
-
Recently Tesla have made their API public and the web assisted flow should be possible from within a browser. I'm just playing about with this now with an ASPNET Core project and will report back. |
Beta Was this translation helpful? Give feedback.
-
Thanks @gingertez for the explanation. Sounds like a good direction... If you can make these changes without breaking the existing contract (which it sounds like you can) please make a PR and I'd be happy to include in the library. |
Beta Was this translation helpful? Give feedback.
Thanks @tomhollander . I've done it that way - pull request: #39