TiktTok Login compatibility using satellizer
JayPatel1992 opened this issue · 0 comments
JayPatel1992 commented
I am trying to get TikTok login work using oauth2, but in TikTok we don't need to send client_id but using oauth2 it is automatically appending the client_id in the url parameter even though in the configuration it is set to null.
Anybody have solution to this?
$authProvider.oauth2({
name: 'tiktok',
url: '[SERVER_CALLBACK_ENDPOINT]',
authorizationEndpoint: 'https://open-api.tiktok.com/platform/oauth/connect/',
clientId: null,
clientKey: '[CLIENT_KEY]',
requiredUrlParams: ['client_key', 'scope', 'state'],
scope: ['user.info.basic', 'video.list'],
scopeDelimiter: ',',
redirectUri: window.location.origin,
state: Math.random().toString(36).substring(7),
responseType: 'code',
oauthType: '2.0',
});
This is how the URL looks like:
https://open-api.tiktok.com/platform/oauth/connect/?response_type=code&client_id=&redirect_uri=[redirectUri]&client_key=[clientKey]&scope=user.info.basic,video.list
Appreciate any help on this.
Thank you.