TikTok
Configure authentication via TikTok in Portabase.
TikTok integration allows your users to sign in via their TikTok account, offering a seamless experience for social and creative platforms.
Check the OAuth2 configuration to understand global variables and role management.
Configuration Steps
Access TikTok for Developers
Go to the TikTok for Developers Portal and log in.
Create a Project and an Application
Create a new project or select an existing one, then create an App.
- Give your application a name and an icon.
- Fill in your organization's information.
Configure OAuth
In the Auth section of your application:
- Add the redirect URL:
https://portabase.your-domain.com/api/auth/callback/tiktok - Select the required scopes, such as
user.info.basic.
Get Credentials
Once the application is created, you will get your Client Key (which serves as the Client ID) and your Client Secret.
Submit for Review (Optional)
For the application to be accessible to all users, submit it for review. In development mode, only test accounts are allowed.
Environment Variables
Add these variables to your TikTok configuration:
AUTH_SOCIAL_TIKTOK_CLIENT="your-tiktok-client-key"
AUTH_SOCIAL_TIKTOK_SECRET="your-tiktok-client-secret"Restart the Dashboard
After updating your .env file, restart the instance:
portabase restart .docker-compose down && docker-compose up -d