We are getting signature expired error while we are sending request to join an Zoom Meeting. We already integrate the Meetings api and its working fine ie create/update/delete meetings, add/edit/update participants etc. but when we try to join the created meeting with our web application its shown us the SIGNATURE EXPIRED error. We already check the timezone possibilities also but couldn’t found anything. our JWT token is
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjo4ODk4Njk3MTM2Miwicm9sZSI6MCwiaWF0IjoxNzE2NDY3NTUyMDAwLCJleHAiOjE3MTY0NzA1ODIwMDAsInRva2VuRXhwIjoxNzE2NDk3NTgyMDAwfQ.8GxLErhZ7FU_90z3tMCQqUELPVM-1H3pAH7UivoqJ0lz18Go4lnF-tEILKN16inDfjlSG6N5rxFRl46nhhMBuw
@acsinstitute0863 56362, that is not a valid year
We tried a new signature as per your guidance but it is still showing invalid can you please provide some code stuff for PHP Yii2 as we are using the same. our newly generaeted signature is : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjoiODE3NTg4NzY1ODciLCJyb2xlIjowLCJpYXQiOjE3MTcwMDM5MTIsImV4cCI6MTcxNzAwNzUxMiwidG9rZW5FeHAiOjE3MTcwMDc1MTJ9.JXkatXFX1vr82vplcJVlh-QE8JZSq8ss7sHTrw2455c
@acsinstitute0863 for php sample code, I’m doing something like this to generate the Meeting SDK token.
$config = include 'config.php';
$meetingSDKClientKey = $config['meetingSDKClientKey'];
$meetingSDKClientSecret = $config['meetingSDKClientSecret'];
$iat = time() - 30;
$exp = $iat + 60 * 60 * 10;
//$client_request = $this->request->input('json_decode');
// Define the payload data for your JWT token
$token_payload = [
'sdkKey' => $meetingSDKClientKey,
'mn' => 9898533313,
'role' => 1,
'iat' => $iat, // Issued at timestamp
'exp' => $exp, // Expiration timestamp (2 hours from now)
'appKey' => $meetingSDKClientKey,
'tokenExp' => $exp
];
// Encode the JWT token
$header = json_encode(['typ' => 'JWT', 'alg' => 'HS256']);
$payload = json_encode($token_payload);
$headers_encoded = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($header));
$payload_encoded = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($payload));
$signature = hash_hmac('sha256', $headers_encoded . '.' . $payload_encoded, $meetingSDKClientSecret, true);
$signature_encoded = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($signature));
$jwt = $headers_encoded . '.' . $payload_encoded . '.' . $signature_encoded;
echo $jwt;
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.