Changes for page 1. Authorization
Last modified by Giorgi Mdivnishvili on 2024/04/26 15:59
From version 30.1
edited by Giorgi Mdivnishvili
on 2024/04/11 15:34
on 2024/04/11 15:34
Change comment:
There is no comment for this version
To version 32.1
edited by Giorgi Mdivnishvili
on 2024/04/16 18:43
on 2024/04/16 18:43
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -42,12 +42,19 @@ 42 42 43 43 {{code language="Json"}} 44 44 { 45 - "accessToken": "string" 45 + "accessToken": "string", 46 + "refreshToken": "string", 47 + "passwordExpired": true 46 46 } 47 47 {{/code}} 48 48 51 +expiration time 30 days for both tokens: 49 49 53 +accessToken - 43200 min 50 50 55 +refreshToken - 2591968 sec 56 + 57 + 51 51 === Schema === 52 52 53 53 (% data-xwiki-non-generated-content="java.util.List" %) ... ... @@ -56,12 +56,13 @@ 56 56 ))) 57 57 58 58 {{success}} 59 -AuthRe quest{66 +AuthResponse{ 60 60 61 -| login|string68 +|accessToken|string 62 62 nullable: true 63 -| password|string70 +|refreshToken|string 64 64 nullable: true 72 +|passwordExpired|boolean 65 65 66 66 } 67 67 {{/success}} ... ... @@ -70,18 +70,18 @@ 70 70 == Important == 71 71 72 72 {{error}} 73 - It'sImportant to in every otherrequestheader, put Auth token81 +=== Implementing Authorization in Subsequent Requests === 74 74 75 - **Key**-Authorization83 +For every API request after the initial authentication, it's crucial to include the authorization token in the request header. This ensures your requests are authorized and can access the necessary resources. Here's how to properly include your token: 76 76 77 -**Value **- Bearer Token what is given in this response. (Authorization type Bearer Token) 85 +* **Header Key:** Authorization 86 +* **Header Value:** Bearer [Your Token Here] - Use the bearer token provided in the initial authentication response. The authorization type should be specified as Bearer Token. 78 78 88 +Additionally, to ensure your requests are properly formatted and recognized, include the following headers: 79 79 80 -**also note in headers that:** 90 +* **Content-Type:** Specify this header as application/json to indicate the format of the request body. 91 +* **Header Key:** X-nugios-timezone 92 +* **Header Value:** 240 - Adjust this value to match your local timezone offset in minutes. 81 81 82 -Content-Type - application/json 83 - 84 -**Key - **X-nugios-timezone 85 - 86 -**Value **- 240 94 +Incorporating these headers with their respective values is essential for the successful processing of your API requests. 87 87 {{/error}}