Changes for page DigDash API REST
Last modified by Aurelie Bertrand on 2025/03/25 16:13
From version 38.1
edited by Aurelie Bertrand
on 2024/08/30 09:20
on 2024/08/30 09:20
Change comment:
There is no comment for this version
To version 45.1
edited by Aurelie Bertrand
on 2024/08/30 09:51
on 2024/08/30 09:51
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -56,13 +56,13 @@ 56 56 ℹ Il n'est pas possible de créer un jeton de sécurité (JWT) quand authentifié avec un jeton de sécurité (JWT). 57 57 ))) 58 58 59 -== Authentificationvia BasicAuth ==59 +== S'authentifier via BasicAuth == 60 60 61 61 1. Entrez votre nom d'utilisateur et mot de passe Digdash. 62 62 1. Cliquez sur le bouton **Authorize** puis, une fois l'authentification effectuée, sur **Close**. 63 63 ➡ Le cadenas est à présent fermé, signifiant que vous êtes autorisé. 64 64 65 -== Cré ationdujeton de sécurité ==65 +== Créer le jeton de sécurité == 66 66 67 67 Nous allons créer ici le jeton de sécurité Json Web Token (JWT) : 68 68 ... ... @@ -111,7 +111,7 @@ 111 111 openssl rsa -in /path/to/privatekey.pem -pubout -out /path/to/publickey.crt 112 112 {{/code}} 113 113 114 -== Authentificationvia BearerAuth ==114 +== S'authentifier via BearerAuth == 115 115 116 116 (% class="wikigeneratedid" id="HUnefoislejetondesE9curitE9gE9nE9rE92CvouspouvezvousauthentifieraveccettemE9thode:" %) 117 117 (% style="font-size:14px" %)Une fois le jeton de sécurité généré, vous pouvez vous authentifier avec cette méthode : ... ... @@ -176,9 +176,17 @@ 176 176 = Expiration et révocation de l'authentification = 177 177 178 178 (% style="line-height:1.7142857142857142; background-color:#ffffff" %) 179 -(% style="color:#182027; font-family:Arial,sans-serif; font-size:10.5pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Lorsque le jeton d'accès expire, vous recevez une réponse (% style="color:#182027; font-family:~"Roboto Mono~",monospace; font-size:10pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)401:(%%) "Unauthorized". 179 +(% style="color:#182027; font-family:Arial,sans-serif; font-size:10.5pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Lorsque le jeton de sécurité (JWT) expire, vous recevez une réponse (% style="color:#182027; font-family:~"Roboto Mono~",monospace; font-size:10pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)401:(%%) "Unauthorized". 180 +(% style="color:#182027; font-family:Arial,sans-serif; font-size:10.5pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)L'en-tête d'autorisation du porteur est toujours présent pour vos demandes, mais le jeton a expiré. Lorsque cela se produit, vous devez invalider le jeton expiré et générer un nouveau jeton d'accès. 180 180 181 181 (% style="line-height:1.7142857142857142; background-color:#ffffff" %) 182 -(% style=" color:#182027; font-family:Arial,sans-serif; font-size:10.5pt; font-style:normal;font-variant:normal;font-weight:400; text-decoration:none; white-space:pre-wrap" %)L'en-tête d'autorisation duporteurest toujoursprésentpour vos demandes,maislejeton d'accèsa expiré. Lorsquelaseproduit, vous devez invalider le jetonexpiréetgénérer un nouveaujeton d'accès:183 +De même l(% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial, sans-serif; color: rgb(24, 32, 39); font-weight: 400; font-style: normal; text-decoration: none" %)orsque vous avez terminé de travailler avec l'interface Swagger, vous devez invalider le jeton d'accès que vous avez utilisé. 183 183 185 +(% style="line-height:1.7142857142857142; background-color:#ffffff" %) 186 +(% style="color:#182027; font-family:Arial,sans-serif; font-size:10.5pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Pour invalider le jeton de sécurité : 187 + 188 +1. (% style="color:#182027; font-family:Arial,sans-serif; font-size:10.5pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Cliquez sur le bouton **Authorize** pour ouvrir la fenêtre **Available authorizations**. 189 +1. Cliquez sur le bouton **Logout** en dessous de** BearerAuth**. 190 +1. Cliquez sur** Close** pour **Fermer**. 191 + 184 184