-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[boschindego] Implement OAuth2 authorization #14745
Conversation
709671a
to
9acd276
Compare
9acd276
to
f00020f
Compare
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
4c064d3
to
e3f8062
Compare
db85956
to
fe96ed6
Compare
@openhab/add-ons-maintainers, if this PR would be reviewed and completed during the Easter, I should be able to quickly backport it to 3.4.x so it could be included in 3.4.3. |
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
fe96ed6
to
d4e9968
Compare
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
My mower has been authenticated for more than a week now without any issues. I don't have any plans for the near future to improve the cumbersome authorization flow described in the README. |
@openhab/add-ons-maintainers - since the binding is currently broken by cloud changes, please consider this PR for the upcoming milestone. |
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.
Thanks for making it working again! I only have a few minor comments.
...schindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoDeviceController.java
Outdated
Show resolved
Hide resolved
...schindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoDeviceController.java
Outdated
Show resolved
Hide resolved
...schindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoDeviceController.java
Outdated
Show resolved
Hide resolved
...dego/src/main/java/org/openhab/binding/boschindego/internal/handler/BoschAccountHandler.java
Outdated
Show resolved
Hide resolved
...dego/src/main/java/org/openhab/binding/boschindego/internal/handler/BoschAccountHandler.java
Outdated
Show resolved
Hide resolved
...ndego/src/main/java/org/openhab/binding/boschindego/internal/handler/BoschIndegoHandler.java
Outdated
Show resolved
Hide resolved
...ndego/src/main/java/org/openhab/binding/boschindego/internal/handler/BoschIndegoHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@wborn - thanks for reviewing this. I have addressed your comments. |
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.
Very good! 👍
Now you can also create a PR to add an upgrade notice. 😉 |
@jlaur Thank you for your great work! First tests look very good. |
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
On March 1st 2023 Bosch migrated to central Bosch ID accounts. This has two direct consequences for the binding:
This pull request:
Some manual steps are needed for upgrading:
Keep in mind though that the binding has been fully broken since March 1st.
I'm still trying to find a (user-friendly) way to retrieve the OAuth2 authorization code. This seems difficult, at least for me. Therefore I'm publishing this PR as a first step to get the binding to work again.
The problem yet unresolved is the use of a client id extracted from the Android app with a hardcoded redirect URL "com.bosch.indegoconnect://login/?code=XXXXXXXX".
Testing:
Fixes #14536