File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ This document details how to use custom Token verification to access panel APIs
2121 ```text
2222 Token = md5('1panel' + API-Key + UnixTimestamp)
2323 ```
24+ !!! note ""
2425
2526 Components:
2627
@@ -39,6 +40,8 @@ This document details how to use custom Token verification to access panel APIs
3940 | 1Panel-Token | Custom Token value |
4041 | 1Panel-Timestamp | Current Unix timestamp |
4142
43+ !!! note ""
44+
4245 Example request header:
4346
4447 ```bash
@@ -87,6 +90,8 @@ This document details how to use custom Token verification to access panel APIs
8790
8891 The backend will return 401 Unauthorized with the prompt "API interface key error".
8992
93+ !!! note ""
94+
9095 - How to generate 1Panel-Token
9196
9297 Please refer to the following pseudocode:
@@ -95,6 +100,8 @@ This document details how to use custom Token verification to access panel APIs
95100 const token = md5('1panel' + clientToken + unixTimestamp);
96101 ```
97102
103+ !!! note ""
104+
98105 - Why two Headers are required
99106
100107 To increase the complexity of verification and enhance security at the same time.
You can’t perform that action at this time.
0 commit comments