tencent cloud

Tencent Push Notification Service

Release Notes
Announcements
Features
SDK for Android
SDK for iOS
SDK for macOS
Product Introduction
Overview
Strengths
Use Cases
Global Deployment
Purchase Guide
Billing Overview
Purchase Directions
Billing Modes
Free Trial
Payment Overdue
Getting Started
Creating Products and Applications
Quick Integration with Android
Quick Integration with iOS
Creating a Push Task
Querying Push Records
Guidelines for Push Testing Methods
Product Restrictions
Operation Guide
Push Management
Advanced Push Features
Practical Tutorial
iOS Badge Feature Practice
API Documentation
Overview
API Overview
Call Method
Push APIs
Tag APIs
Account APIs
Statistics APIs
User Attribute APIs
Server-Side Error Codes
Server SDKs
API (Java)
SDK Documentation
Android Integration Guide
iOS Integration Guide
Client Integration Plugin
macOS Integration Guide
Users and Permissions
Quick Configuration
Advanced Custom Configuration
Resource Tag
Service Agreement
Service Level Agreement
FAQs
iOS
Android
Flutter
Others
Tencent Push Notification Service Policy
Privacy Policy
Data Processing and Security Agreement
Developer Agreement
Contact Us
Glossary

Basic Auth Authentication

PDF
Focus Mode
Font Size
Last updated: 2024-01-17 14:24:51
This document describes the Basic Auth authentication methods of Tencent Push Notification Service.
For Basic Auth authentication with AccessId and SecretKey, the key is easy to be compromised and the security is not high. You are recommended to use signature authentication.

Obtaining a Key

1. Log in to the Tencent Push Notification Service console, and select Configuration Management > Basic Configuration in the left sidebar.
2. Get Access ID and SECRET KEY from the Application Information column.

Generating a Signature

1. Generate a Request String This step generates a request string. The generation algorithm is: base64(Access ID:SECRETKEY), which adds a colon after Access ID followed by SECRETKEY to form a string and then perform base64 encoding on the string. Sample:
base64(150000****:cf43dac624820*****c1fe5fc993)
2. Perform Basic Auth verification and authentication Basic authentication is used, i.e., adding a field (key-value pair) to the HTTP Header:
Authorization: Basic base64_auth_string
Sample:
Authorization:Basic base64(150000****:cf43dac624820*****c1fe5fc993)


Help and Support

Was this page helpful?

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

Feedback