Windows SDK API Reference
Loading...
Searching...
No Matches
tagAuthContext Struct Reference

SDK Authentication parameter with jwt token. Here are more detailed structural descriptions. More...

#include <auth_service_interface.h>

Public Member Functions

 tagAuthContext ()
 

Data Fields

const wchar_t * jwt_token
 

Detailed Description

SDK Authentication parameter with jwt token. Here are more detailed structural descriptions.

Definition at line 82 of file auth_service_interface.h.

Constructor & Destructor Documentation

◆ tagAuthContext()

tagAuthContext::tagAuthContext ( )
inline

JWT token. You may generate your JWT token using the online tool https://jwt.io/. 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 106 of file auth_service_interface.h.

107 {
108 jwt_token = NULL;
109 }
const wchar_t * jwt_token

References jwt_token.

Field Documentation

◆ jwt_token

const wchar_t* tagAuthContext::jwt_token

Definition at line 84 of file auth_service_interface.h.

Referenced by tagAuthContext().