I’m new in the smartthings development, starting this week, but very excited discovering the IoT world
Based on several examples, i created my first smartthing app to control a small demo lab (switches and presence sensors).
With the defined Web Services methods, for example, i can switch on / off my devices through web browser call (an more actions for additional devices), but only in a logged session scope.
I’m going beyond, developing a C# application, and i want to automate the authentication process to allow the application execute REST API call to that EndPoint Web Services Methods without end-user interaction. Is it possible to avoid the Login Page prompting the user for credentials?
I mean, is it possible that my application stores the user & password, and the ClientID and SecretID to authenticate with the EndPoint using Oauth?
I have found several post related with the OAuth auth process, for example:
Based on this example, a redirect_uri is requiered. is it correct? Can i use a HTTPClient to GET the request and store the “code” and “access_token” to make the authentication in my app scope?
Thanks in advance!