Modifications pour le document DigDash API REST

Modifié par Aurelie Bertrand le 2025/03/25 16:13

Depuis la version 9.1
modifié par Aurelie Bertrand
sur 2024/08/29 12:07
Commentaire de modification : Il n'y a aucun commentaire pour cette version
À la version 8.1
modifié par Aurelie Bertrand
sur 2024/08/29 11:46
Commentaire de modification : Il n'y a aucun commentaire pour cette version

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -60,27 +60,6 @@
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 -
84 84  == Authentification via BearerAuth ==
85 85  
86 86  == (% style="font-size:14px" %)Une fois le jeton de sécurité généré, vous pouvez vous authentifier avec cette méthode :(%%) ==