Skip to content

TiktTok Login compatibility using satellizer #1150

Description

@dev-jayp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions