Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiktTok Login compatibility using satellizer #1150

Open
JayPatel1992 opened this issue Nov 10, 2021 · 0 comments
Open

TiktTok Login compatibility using satellizer #1150

JayPatel1992 opened this issue Nov 10, 2021 · 0 comments

Comments

@JayPatel1992
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant