Website logo
⌘
K
👋Kickstarting with Teyuto
Start Here (Important Features)
Register for Video Distribution
Upload Your First Video
Dashboard
Getting Started: Using Sections Explained
Dashboard
Video
Organize
Customize
Settings
Members
Promotions
Payments
Distribution
Adding Videos to Channel
Upload a Video
Adding Live Streaming Video
Recording live video
Import videos
Editing a Video
How to Add Audio Track to a Video
Getting Started
Editing a Video
Adding a Subtitle
Adding an Attachment
Settings
Plan Upgradation
Update Your Channel's Name
Integrations
Change Background Image of Login and Registration Page
Update Your Social Channels and Company Website
Update Your Channel’s Name
Update Your Logo and Favicon
Update Footer
Start Videos in Full-Screen Mode
Show View Count in Your Previews
Show Related Videos to Your Users
Show or Hide Search Menu for Guest Users
Show Like Button on Previews
Setup Your Preferred Currency
Setup Terms and Conditions and Privacy Policy
Setup Signup Settings
Remove Teyuto Branding from Footer
Limiting The Number of User Devices: Usage Restrictions
Hide Videos in Search
Geoblocking Content
Enable Real-Time Views in Livestreaming Videos
Enable or Disable Live Chat in Live Streaming Videos
Enable Multiple Languages
Disable or Enable Comments on On-Demand Videos
Change Your Subdomain or URL
Using the Teyuto Channel Sitemap URL in Google Search Console
Adding the RSS Feed of a Teyuto Channel to Google Publisher Center
Setup a custom domain
Embed a video into an external website
Cancel your Teyuto Account
Connect Gmail SMTP
How to Create a Contact Form
How do I invite new users to my channel?
Is My Teyuto Channel Secure?
Integrations
Machine translations with DeepL
Integrating Auth0
Google Tag Manager events
Connecting Meta Pixel (Previously Facebook Pixel)
Connecting Google Tag Manager
Twitter Pixel Integration
OTT APPs
Activating APPs & Smart TVs
Create your Apple Developer Account
Create your Google Play developer account
Steps to Activate In-App Purchase
Get Android Updates
Definitions
Storefront Translations
Available currencies
User roles
Add your logo
Tax Rate concerning payments
Keyboard support for the Video Player
How quotas work
What platforms does Teyuto support?
What video resolutions and bitrate does Teyuto transcode to?
What formats of video can I upload?
Live Streaming Tools
Live broadcast recommended settings for RTMP Ingest
Multiple Guest Streams with OBS Ninja
Live Stream with StreamYard
Live Stream with Zoom
Making Your Channel Picture Perfect
Why This Guide?
Identifying Your Target Audience
Brainstorming Content Ideas and Formats
Importance of Consistent Branding
Principles of Effective Channel Layout
Crafting Compelling Titles and Thumbnails
Advanced features
Integrating AD Tag VAST or VMAP with Teyuto: General Guide
Adding Custom Code
Security
Is Teyuto EU GDPR compliant?
FAQs & Troubleshooting
Why is My Site Down?
Troubleshoot Slow Loading Time
Diagnosing Video Quality Issues Following Upload
Docs powered by Archbee
Integrations

Integrating Auth0

18min

Creating an account on Auth0

  • Go to the website Auth0 and create an account if you don't already have one.

Creating an application on Auth0

  • After logging in to Auth0, go to your dashboard and create a new application.



Document image

  • Choose the type of application: "Regular Web Application".



Document image

  • After creating the application go to the "Settings" section of the application



Document image

  • First of all you will need to get the Channel Token from the settings / integrations / Teyuto API section.
Document image

  • Configure application settings, including callback URLs and logout URLs, by following these instructions:
Document image

  • Configure the parameters like this:
  1. Application Login URI: https://{channelDomain}/login
  2. Allowed Callback URLs https://api.teyuto.tv/v2/oauth/{channelToken}/check/auth0 {channelToken} is the parameter previously retrieved from the integrations / Teyuto API section.
  3. Allowed Logout URLs https://{channelDomain}
  4. Make sure that "Allow Cross-Origin Authentication” is enabled



Document image


Migrate Teyuto users to Auth0 progressively

If you have an active platform it will be essential to follow these steps to allow your current users to be able to access through Auth0.

Be very careful, if you do not take this step your current users will not be able to access the platform.

To set up the Teyuto to Auth0 user migration integration, follow these steps:

  • Access the “Authentication” section in Auth0, then proceed with “+ Create DB Connection”



Document image

  • Insert "teyuto-db” as the Database Name, and then click “Create”
Document image

  • Once the database has been created, from the “Settings” section, enable the “Import Users to Auth0”
Document image

  • Next, go to the “Custom Database” and enable the “Use my own database”
Document image

  • Still in the Custom Database section, scroll down to the "Database Action Scripts”,
  • For ”Login” insert the code below in this way, being careful to change the parameter {channelToken} with your parameter recently found from the settings / integration / Teyuto API section.
  • insert the Chennel Token parameter into "YOUR_CHANNEL_TOKEN" .
JS
function login(email, password, callback) {
  const channelToken="YOUR_CHANNEL_TOKEN";
  const request = require('request');
  const jsonStringified = `email=${email}&password=${password}&twofa_required=false&is_external=true`;

  request.get({
  	url: 'https://api.teyuto.tv/v2/sessions/authentication?'+jsonStringified,
    headers: {
    'channel': channelToken, 
  	},
    //for more options check:
    //https://github.com/mikeal/request#requestoptions-callback
  }, function(err, response, body) {
    if (err) return callback(err);
    if (response.statusCode === 401) return callback();
    const user = JSON.parse(body);

    callback(null, {
     email: email,
     user_id: user.id.toString()
    });
  });
}


  • Then save, you should get a similar result:
Document image


 

  • For ”Get User” you will have to find "Auth Token" of Teyuto from your dashboard (it is the private token).

Then go to the Settings / Integrations / Teyuto API section.

Document image

  • Now go back to Auth0 in the “Database Action Scripts” screen for “Get User”,
  • insert the Auth Token parameter into "YOUR_AUTH_TOKEN" .
JS
function loginByEmail(email, callback) {
  const request = require('request');
  const authToken = "YOUR_AUTH_TOKEN";
  
  request.get({
    url: 'https:/api.teyuto.tv/v2/users?email=' + email,
    headers: {
      'Authorization': authToken
    }
  }, function (err, response, body) {
    if (err) return callback(null);
    if (response.statusCode === 404) return callback(null);

    const user = JSON.parse(body);
    const userObj = user.users[0];

    callback(null, {
      user_id: userObj.id.toString(),
      nickname: userObj.username,
      email: userObj.email
    });
  });
}





  • Then save, you should get a similar result:
Document image




Add integration in Teyuto

  • Access to the Settings section and then Integrations.
  • Then search for "Auth0"
Document image

  • Click on Connect
Document image

  • From the settings section of your Auth0 application find the information to be entered into Teyuto
Document image

  • On the Teyuto integration screen click on Connect.
Document image




Updated 11 Oct 2023
Did this page help you?
PREVIOUS
Machine translations with DeepL
NEXT
Google Tag Manager events
Docs powered by Archbee
TABLE OF CONTENTS
Creating an account on Auth0
Creating an application on Auth0
Migrate Teyuto users to Auth0 progressively
Add integration in Teyuto
Docs powered by Archbee