tencent cloud

Cloud Streaming Services

Release Notes and Announcements
Announcements
User Guide
Product Introduction
Overview
CSS Products
Concepts
Features
Use Cases
Strengths
Use Limits
Purchase Guide
Billing Overview
Basic Service Fee
Value-Added Service Fee
Prepaid plan
Purchase Process
Changing Billing Modes
Refund Policy
Viewing Bills
Renewal
Processing for Overdue Payments
Billing FAQs
Live Video Broadcasting (LVB)
Overview
Use Cases
Getting Started
SDK Integration
Live Event Broadcasting (LEB)
Overview
LEB Versus LVB
Use Cases
Getting Started
SDK Integration
Live Video Caster
Overview
Application Scenarios
Feature Area Introduction
Managing Live Video Caster
General Cloud Director
Configuring Program Lists and Automated Broadcasting
Console Guide
Console Overview
Overview
Domain Management
Stream Management
Package Management
AI Features
Feature Configuration
Relay
Billing Usage Statistics
Monitoring
Toolkit
OOTB live
CAM-Based Access Control
Feature Guide
Push and Playback
Features
Practices in Typical Scenarios
Cloud Native Recording
Live Streaming Security
Global CSS Service
Callback Notifications
User Guides for Common Third-Party Tools
SDK Guide
0. SDK Integration Guide
1. Stream Push
2. Playback
3. Advanced Features
API Documentation
History
Introduction
API Category
Making API Requests
Live Pad APIs
Live Stream Mix APIs
Time Shifting APIs
Monitoring Data Query APIs
Billing Data Query APIs
Live Transcoding APIs
Delayed Playback Management APIs
Domain Name Management APIs
Watermark Management APIs
Certificate Management APIs
Stream Pulling APIs
Recording Management APIs
Live Callback APIs
Screencapturing and Porn Detection APIs
Authentication Management APIs
Live Stream Management APIs
Data Types
Error Codes
Ops Guide
Video Stuttering
Troubleshooting Push Failure
Troubleshooting Playback Failure
CLS Assists in Live Stream Troubleshooting
Troubleshooting High Latency
Troubleshooting Poor Quality of Pulled Video
Authorizing CSS to Store Screenshots in a COS Bucket
Troubleshooting
Live Stream Mixing Error `InvalidParameter.OtherError`
About Pushing
Generating Push URLs
PC Push
Playing Method
Web Player
Live Streaming Quiz
FAQs
Service Region
Live Streaming Basics
Push and Playback
CSS Billing
Global CSS Service
Live Recording
On-Cloud Stream Mix
Domain Configuration
Related to Live Video Caster
Compatibility with Apple ATS
Difference Between Stream Interruption and Stream Suspension
SLA
CSS Service Level Agreement
CSS Policy
Privacy Policy
Data Processing And Security Agreement
Glossary

Remote Authentication Configuration

PDF
Focus Mode
Font Size
Last updated: 2025-12-01 17:30:41
With remote authentication, after authenticating a push/playback request for hotlink protection, CSS will call your server API to send the request to your server so that you can determine whether the request is legitimate. Based on the result your server returns, CSS will approve or reject the push/playback request. This ensures more precise authentication and improves security. However, you need to develop your own authentication server.

Workflow

Remote authentication works as follows:


No
Description
1
A request is sent to CSS.
2
If remote authentication is enabled for the domain, CSS will process the request as specified and then send it to your authentication server.
3
Your authentication server returns the result. The HTTP status code 200 indicates that the request should be approved, while the code 403 indicates that the request should be rejected.
4
CSS approves or rejects the request based on the result.

Prerequisites

You have activated CSS and logged in to the CSS console.
You have added a playback domain name.

Configuring Remote Authentication

1. Select Domain Management on the left sidebar. Click the name of the target playback domain or click Manage on the right to enter the domain management page.



2. Under the Access Control tab, find Remote authentication.
3. Click

to enable remote authentication and complete the following settings:


Configuration Item
Description
Authentication server address
The address of your authentication server (required). Format: http(s)://+Domain or IP address+Port+Path.
Request method
POST is selected by default. You can also use HEAD or GET.
URL authentication
Parameters to keep
All URL parameters are kept by default. You can also specify parameters to keep or remove all parameters.
If you select "Keep specified parameter", fill in the box the parameters you want to keep. Separate them with |, as in value1|value2.
The parameters are case-sensitive (“key” and “KEY” are different parameters).
Custom parameters to add
Click "Add" to add authentication parameters (max 50). You can either select a parameter to add or add a custom parameter.
The parameters you can select include "host", "uri", "client_ip", and "cdn_ip", which represent the playback domain, the original request URL, the client IP address, and the CDN IP address respectively.
If you select "Custom", "Parameter" and "Value" are required. The names and values are case-sensitive ("key" and "KEY" are different parameters). Chinese characters are not allowed.
Request header authentication
Request header to keep
All URL parameters are kept by default. You can also specify parameters to keep or remove all parameters.
If you select "Keep specified parameter", fill in the box the parameters you want to keep. Separate them with |, as in value1|value2.
If you select "Keep all", the CDN node will delete the host header. If you want to keep it, select "Keep specified parameter" or add a custom parameter.
The parameters are case-insensitive.
Custom parameters to add
Click "Add" to add authentication parameters (max 50). You can either select a parameter to add or add a custom parameter.
The parameters you can select include "User-Agent", "Referer", and "X-Forwarded-For", which represent the system and browser information of the user, the referer of the URL, and the URL disguise.
If you select "Custom", "Parameter" and "Value" are required. The names and values are case-insensitive. Chinese characters not allowed.
Timeout period (ms) per try
This is required. Enter a value between 500 and 3000. The default is 3000.
Max retries
Enter a value between 0 and 3. The default is 1.
Behavior upon timeout
The default is "Approve". You can also set it to "Reject".
Whether to approve or reject a request if the system does not receive a response (HTTP status code 200 or 403) after the total timeout period elapses (Total timeout period = Timeout period per try x (Max retries + 1)).
Asynchronous Authentication
Asynchronous authentication is disabled by default. You may enable this feature manually based on your specific business requirements.
Once enabled, playback will commence without waiting for the remote authentication result, allowing for immediate content viewing. If the remote authentication subsequently fail, the playback will be disconnected. This approach avoids the issue of increased initial screen load time due to the latency of remote authentication. In the asynchronous authentication mode, the authentication for ts and m3u8 files in the HLS protocol will not be effective, and synchronous authentication will continue to be maintained.

4. Click Save.
Note:
After configuring the remote authentication feature, it will take approximately 10 minutes to become effective. We appreciate your patience during this time.




Modifying Remote Authentication Settings

1. Select Domain Management on the left sidebar. Click the name of the target playback domain or click Manage on the right to enter the domain management page.



2. Under the Access Control tab, find Remote authentication and click Edit.
3. Modify the settings and click Save.




Disabling Remote Authentication

1. Select Domain Management on the left sidebar. Click the name of the target playback domain or click Manage on the right to enter the domain management page.



2. Under the Access Control tab, find Remote authentication, and click
img

to disable remote authentication.



3. To disable the remote authentication configuration, it is expected to take effect in about 10 minutes. Click Confirm.





Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback