First of all, thanks for your time, and thank you; for reading, and answering this question.
We have been creating inside an HTTP Operation, a way to generate a JWT as follows:
set header = "{""alg"":""HS256""}"
$$$LOGINFO("header: "_header)
set payload = "{""username"":"""_user_""", ""requestID"":"""_pRequest.idPeticion_"""}"
$$$LOGINFO("payload: "_payload)
set key = ##class(Util.TablasMaestras).getValorMaestra("PDF_LABORATORIO","secretKey_JWT")
$$$LOGINFO("key: "_key)
set base64header = $systemEncryption.
.png)
.png)

.png)
.png)
