-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use oauth for BotVac? #2
Comments
Hello @ostinelli thank you for your very helpful information. I wasn't aware of the Neato Developer Network and the great documentation available through the network. For the raised issue about authentication using OAuth that's absolutely the right way to go. From the documentation Neato is offering two grant types 'Authorization Code' and 'Implicit'. Both types are suitable for applications where active user interaction is given. Fhem in contrast is a server for house automation, (see fhem.de), that is designed to run without active user interaction. My code here from the GitHub serves as a module to control a BotVac robot that can plugged into a Fhem server installation. Afterwards the module has to do the whole communication to operate with the robot. As far as I understand OAuth grand type 'Resource Owner Password Credentials' fits better to the Fhem approach. Every user of Fhem has it own installation and the user credentials are known in this installation only. Is it feasible to offer an additional grand type for Fhem so that I could integrate it in my code and the authentication is done without user interaction? Best regards, |
Hi @vuffiraa72! |
Hi @ostinelli |
Ok got it. Thank you for the input, we'll consider adding additional OAuth modes. |
Hi @ostinelli, |
Hi @ostinelli |
Hello @vuffiraa72!
Let me introduce myself, I am Roberto Ostinelli, Neato Robotics' Director of Cloud Services.
I'm impressed with the work that you've put into integrating with our robots! Great job!
Given the interest that we've seen from developers like yourself and around the forums we've listened and have just released the Neato Developer Network. In there, amongst other things you will find official documentation and SDKs for JavaScript, iOS and Android (for now, we plan on expanding to other languages too!).
This issue is for you to consider switching to proper OAuth instead of the internal logins mechanisms that you are using in this gem.
It would be the official way to proceed, and you would avoid some improper implementations. For example, you should not pass
token
andplatform
here: they are not needed, raise errors on our systems - since tokens are invalid - and this could eventually result in the blocking of user accounts by our automated systems if abused. We definitely wouldn't want that!Please note that all of this is in Beta, we're a small team but are doing our best!
All the best,
r.
The text was updated successfully, but these errors were encountered: