Create OAuth-in Smartapp

Hello,

I am trying to create a OAuth-in Smartapp with the SmartThings CLI as mentioned here: OAuth Integrations | Developer Documentation | SmartThings

  • targetURL: I do not have a Smartapp yet, thus I am leaving the target URL blank (as per the documentation, that shouldn’t be a problem)
  • permissions (scopes): rwx:devices
  • redirectURL: https://httpbin.org/get

However, after logging in, I get the following message:

Thus I am not able to successfully create the OAuth-in integration.

I’ve also tried to create the Smartapp via the Developer’s Workspace, placing https://httpbin.org/get as the target URL, since here it is mandatory and I couldn’t find out how to add a redirect URL. However, once I go to https://api.smartthings.com/oauth/authorize?client_id= <my_client_id>&response_type=code&redirect_uri=https://httpbin.org/get&scope=r:devices:*+w:devices:*+x:devices:*

it tells me 'redirect_uri' could not be validated, thus I am also unsuccessful via this route.

Could someone please guide me on why these errors are appearing and what to do to complete an OAuth-in integration? Thank you in advance!

I’ve seen mentions of that error appearing when the age on the Samsung account is set to under eighteen.

In the Developer Workspace, we can only create Webhook SmartApps, they’re a different type than OAuth-In App (API_ONLY).

And, @orangebucket is right, does this match your description?

Hi! Indeed, the birthday associated to my account was less the 18 years ago…. Thank you for pointing that out! I had to logout and login again for it to work, I have it now!!