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
Change comment: There is no comment for this version
To version 31.1
edited by Giorgi Mdivnishvili
on 2024/04/11 15:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -42,7 +42,9 @@
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  
... ... @@ -56,12 +56,13 @@
56 56  )))
57 57  
58 58  {{success}}
59 -AuthRequest{
61 +AuthResponse{
60 60  
61 -|login|string
63 +|accessToken|string
62 62  nullable: true
63 -|password|string
65 +|refreshToken|string
64 64  nullable: true
67 +|passwordExpired|boolean
65 65  
66 66  }
67 67  {{/success}}
... ... @@ -70,18 +70,18 @@
70 70  == Important ==
71 71  
72 72  {{error}}
73 -It's Important to in every other request header, put Auth token
76 +=== Implementing Authorization in Subsequent Requests ===
74 74  
75 -**Key **- Authorization
78 +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)
80 +* **Header Key:** Authorization
81 +* **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  
83 +Additionally, to ensure your requests are properly formatted and recognized, include the following headers:
79 79  
80 -**also note in headers that:**
85 +* **Content-Type:** Specify this header as application/json to indicate the format of the request body.
86 +* **Header Key:** X-nugios-timezone
87 +* **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
89 +Incorporating these headers with their respective values is essential for the successful processing of your API requests.
87 87  {{/error}}