Install/OAuth Automation SmartApp via Web Browser?

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

I’ve just found this post:

I believe we are interested in the same feature. If so, does anyone have a timeline for this?

Thanks again,
H

1 Like

I would also like to have this capability.

Hello hchen,
I wonder if you were able to get OAuth flow working for the Webhook Automation SmartApp via web?
Currently I also try to make exactly similar you were trying.
Thanks!

No, sorry, I haven’t not gotten any further with this. It only seems to work with the old api (groovy).

1 Like