Hello, Friends !
I am implementing oauth2.0 into my web site
I think my app’s purpose does not fit with smart app
so I just tried to implement basic o auth implementation
followed this thread ↓
first, I generated app using cli app:create
and I added redirect uri like below
https://${mywebsitere}/redirect
and
export async function GET(request: Request) {
const uri = https://api.smartthings.com/oauth/authorize?client_id=${clientID}&redirect_uri=${redirectUrl}&scope=r:devices:*+w:devices:*+x:devices:*
;
redirect(encodeURI(uri));
}
redirected successfully but encountered below issue.
https://starthome.kr/dev/smartthings/login/redirect?**error=unsupported_response_type**
I can’t debug what happend, so please help !!
++ I did got code when I set redirect uri to ↓
https://httpbin.org/get&scope=r:devices:*+w:devices:*+x:devices:*
I coudn’t remember totally, even with this uri I think I failed to get code in second try ,facing same issue - unsupported_response_type (I am not sure)
++ I tried delete all my cache before I try
additionally I tried set my redirect uri to localhost and 127.0.0.1
and I failed all cases with 403 forbidden error.
is there any other way to implement oAuth easy way ?
documentation is almost same with none
Please help , I am wasting my time ㅠ.ㅠ