0

I am trying to test tiktok authorization using ngrok since it doesn't seem to want to let me use localhost.

I have configured the redirect uri and saved it

enter image description here

I am using the following request

https://open-api.tiktok.com/platform/oauth/connect/?client_key=[REDACTED]&scope=user.info.basic&response_type=code&redirect_uri=dcd4-86-52-89-221.ngrok.io&state=xxxxx

have also tried adding https

https://open-api.tiktok.com/platform/oauth/connect/?client_key=[REDACTED]&scope=user.info.basic&response_type=code&redirect_uri=https://dcd4-86-52-89-221.ngrok.io&state=xxxxx

If i am not logged in to my TikTok account then it will pop up with the please login so i know its working that far. It knows the client_key is valid. However once i log in it gives me a redirect uri error.

enter image description here

The thing is its a redirect domain they are looking for so its not, as if i could have the port wrong or the ending path wrong. I am sending the same domain that i have requested.

How do I set an Ngrok redirect uri for tiktok so i can test this locally? This should just work im a little confused as to why it doesn't.

Im wondering if it takes time for them to pick up new redirect uri's.

Its defiantly failing on the validation of the redirect uri because i can see that its not sent anything to Ngrok

enter image description here

update

twenty five hours later after setting. serval redirect domains including one to my main website. I have not be able to get it to accept any redirect Uris.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449

1 Answers1

0

Referring to the same issue which is described in this url it is the problem with the TikTok developer app which is not submitted and approved. Once you have approved the app, your case should work fine.