Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Authorization error #8

Closed
flic opened this issue Dec 1, 2016 · 2 comments
Closed

Authorization error #8

flic opened this issue Dec 1, 2016 · 2 comments

Comments

@flic
Copy link

flic commented Dec 1, 2016

Hi.

I'm getting "Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method." when I try to authorize access to Neato account. Have you seen that error before?

URL: https://apps.neatorobotics.com/oauth2/authorize?client_id=undefined&scope=control_robots+public_profile&response_type=code&redirect_uri=https://callback.athom.com/oauth2/callback/

Homey Firmware v1.0.1

@Joolee
Copy link
Owner

Joolee commented Dec 1, 2016

Yup, that's to be expected for now. You need to register an application as Neato developer. When you do this, you'll get some secret codes to identify your application. As they should remain secret, we do not include them in the repo. :P We can include our secret parameters when we upload the app to the Homey store.

In the mean time, you can register your own application here:
https://developers.neatorobotics.com/applications
Use this as redirect url: https://callback.athom.com/oauth2/callback/
Select both scopes ( public_profile and control_robots )
Make up the rest yourself :)

Next, create a file called env.json next to app.json in the root folder of the app with the following content:

{
    "CLIENT_ID": "<Client ID>",
    "CLIENT_SECRET": "<Secret>"
}

Replace <Client ID> and <Secret> with the strings you got from Neato.

@Joolee Joolee closed this as completed Dec 1, 2016
@flic
Copy link
Author

flic commented Dec 1, 2016

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants