Hello,
I’ve been fiddling around with the new SmartApp (Automation) found here:
https://smartthings.developer.samsung.com/develop/guides/smartapps/quickstart-automation.html
I’ve setup a Webhook, created and self published an Automation SmartApp, and was able to link/install it via the Samsung Smartthings mobile app similar to:
https://smartthings.developer.samsung.com/develop/workspace/tutorials/create-an-automation.html
I see that once I’ve installed the SmartApp via mobile app, my webhook will receive the auth token during install lifecycle - which is great.
Is there a way to get an auth token via web interface and redirect_uri? Also, is there a way to install the Automation SmartApp via web?
In particular, I’m looking for something similar to the old functionality:
http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/smartapp.html
where I can have a user OAuth via web utilizing the SmartApp’s ClientId/ClientSecret
I’ve tried to use my created Automation’s ClientId/ClientSecret against https://graph.api.smartthings.com/oauth/authorize
, but I get error:
OAuth2 Error
error="invalid_grant", error_description="Invalid redirect: http://localhost:8181/verify/smartthings does not match one of the registered values: [https://api.smartthings.com/installedapp]"
Is there a place in the Automation configuration to set valid redirect uri’s?
Thanks,
H