Cambios para el documento DigDash API REST
Última modificación por Aurelie Bertrand el 2026/01/19 11:55
Desde la versión 8.1
editado por Aurelie Bertrand
el 2024/08/29 11:46
el 2024/08/29 11:46
Cambiar el comentario:
No hay comentario para esta versión
Hasta la versión 9.1
editado por Aurelie Bertrand
el 2024/08/29 12:07
el 2024/08/29 12:07
Cambiar el comentario:
No hay comentario para esta versión
Resumen
-
Propiedades de página (1 modificado, 0 añadido, 0 eliminado)
Detalles
- Propiedades de página
-
- Contenido
-
... ... @@ -60,6 +60,27 @@ 60 60 [[image:Réponse_requête_JWT.png||alt="Réponse requête JWT"]] 61 61 1. Copiez le jeton JWT. 62 62 63 +=== Signature du jeton de sécurité === 64 + 65 +Une clé privée utilisée pour signer le JWT est codée en dur par défaut. 66 + 67 +Pour des raisons de sécurité, il est recommandé d'utiliser votre propre clé privée via des variables d'environnement : 68 + 69 +DD_JWT_SECRETKEY: can be set to a custom password to use it when signing JWTs 70 +DD_JWT_SECRETKEY_PATH: can be set to specify the path of an RSA private key to use when signing JWTs 71 + 72 +DD_JWT_SECRETKEY_PATH has priority over DD_JWT_SECRETKEY. If neither are set, a hardcoded secret is used instead and a warning message can be found in the logs saying that this is considered insecure and should be changed. 73 + 74 +The RSA private key can be generated using the following command (requires openssl): 75 + 76 +{{{openssl -genrsa -out /path/to/privatekey.pem 2048 77 +}}} 78 + 79 + 80 +The RSA public key can be optionally be generated from the private key using the following command: 81 + 82 +{{{openssl rsa -in /path/to/privatekey.pem -pubout -out /path/to/publickey.crt}}} 83 + 63 63 == Authentification via BearerAuth == 64 64 65 65 == (% style="font-size:14px" %)Une fois le jeton de sécurité généré, vous pouvez vous authentifier avec cette méthode :(%%) ==