This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
Improvement: support OAuth2 client credentials instead of ONLY authorization code flow #510
nekman
announced in
Announcements
Replies: 1 comment
-
Hi @nekman thanks for the idea. |
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
-
Thanks for a great plugin!
Instead of only allowing users to login with the Authorization code grant,
it is possible to login with client_credentials as well.
If you login using the example that you find under "My Applications" / "Your app":
After you have logged in with your client credentials, you will get back a token for your own user (so it's important that the credentials is not shared) where you can control your Automower (if everything is paired and setup).
I think this will make it easier to setup everything for most users since the "My Home Assistant redirect feature" will no longer be needed.
For most users, the
client_credentials
should be enough (you typically use your own secret to login as your self and control your automower). For some edge cases, there might be other APIs and flows whereauthorization_grant
is better if you want to allow other users to connect to "your backend" with their token (without sharing their passwords with that backend).Beta Was this translation helpful? Give feedback.
All reactions