Skip to content
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

fix: allow auth using refresh_token #211

Merged
merged 1 commit into from
Sep 3, 2021
Merged

fix: allow auth using refresh_token #211

merged 1 commit into from
Sep 3, 2021

Conversation

omelhus
Copy link
Contributor

@omelhus omelhus commented Aug 27, 2021

This fix will allow a user to provide a refresh token generated by apps like "AuthAppForTesla" etc to authenticate. This is the way Telsamate, Teslascope and others are authenticating and it works.

This will require that the core Tesla integration in Home Assistant is updated to be able to provide the refresh_token, but this change is a prerequisite.

Related issue #205.

@alandtse
Copy link
Collaborator

alandtse commented Sep 3, 2021

Thanks. I know we don't really have testing on the user auth yet, but do you mind mocking a test for this new path?

@omelhus
Copy link
Contributor Author

omelhus commented Sep 3, 2021

No clue on how to mock a test for this, sorry.

@alandtse alandtse merged commit 09b7fbe into zabuldon:dev Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants