I’ve been fiddling around with the new SmartApp (Automation) found here:
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:
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:
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?