Meeting SDK for Linux API Reference
Loading...
Searching...
No Matches
tagAuthContext Struct Reference

SDK authentication parameter with jwt token. More...

#include <auth_service_interface.h>

Public Member Functions

 tagAuthContext ()
 

Data Fields

const zchar_tjwt_token
 JWT token. You may generate your JWT token using the online tool https://jwt.io/.
 

Detailed Description

SDK authentication parameter with jwt token.

Definition at line 149 of file auth_service_interface.h.

Constructor & Destructor Documentation

◆ tagAuthContext()

tagAuthContext::tagAuthContext ( )
inline

Definition at line 176 of file auth_service_interface.h.

177 {
178 jwt_token = nullptr;
179 }
const zchar_t * jwt_token
JWT token. You may generate your JWT token using the online tool https://jwt.io/.

References jwt_token.

Field Documentation

◆ jwt_token

const zchar_t* tagAuthContext::jwt_token

JWT token. You may generate your JWT token using the online tool https://jwt.io/.

Note
It is highly recommended to generate your JWT token in your backend server. JWT is generated with three core parts: Header, Payload, and Signature. When combined, these parts are separated by a period to form a token: aaaaa.bbbbb.cccc. Please follow this template to compose your payload for SDK initialization: Header { "alg": "HS256", "typ": "JWT" } Payload { "appKey": "string", // Your SDK key "iat": long, // access token issue timestamp "exp": long, // access token expire time "tokenExp": long // token expire time } Signature HMACSHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), "Your SDK secret here" )

Definition at line 175 of file auth_service_interface.h.

Referenced by tagAuthContext().