-
Notifications
You must be signed in to change notification settings - Fork 41
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
OAuth2 support (fix #37) #41
base: master
Are you sure you want to change the base?
Conversation
private String mBoostrapData; | ||
|
||
UserLoginTask(String uri, String ipAddress, String password) { | ||
mUri = uri; | ||
mIpAddress = ipAddress; | ||
mPassword = password; | ||
mBearerHeader = "Bearer " + password; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I an not familiar with this code base, so this may be a dumb question; could this be replaced with a call to getBearerHeader()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is not possible here.
Looks good to me! 👍 |
Doesn't work. Also, doesn't follow the OAUTH2 workflow. |
@scottdermott use Long lived token instead of password. You can create it on HA profile page. |
@Anonym-tsk is this a new feature on HA? Not present in 0.77.3 |
Yes. From 0.77 https://www.home-assistant.io/blog/2018/08/29/release-77/ |
Tested & working on 0.80.2 |
Support new OAuth user login from 0.73 - Fix #37