mirror of
https://github.com/pikvm/pikvm.git
synced 2026-10-06 23:01:30 +02:00
Update api.md
This commit is contained in:
+2
-2
@@ -16,10 +16,10 @@ There are two options here:
|
||||
```
|
||||
$ curl -k --user admin:admin https://pikvm/api/auth/check
|
||||
```
|
||||
#### Session-based (token) auth
|
||||
#### Session-based cookie auth
|
||||
1. Authorize and get token for the user using `POST /api/auth/login`:
|
||||
```
|
||||
$ curl -k -vv -X POST --data user=admin --data passwd=admin https://pikvm/api/auth/login
|
||||
$ curl -k -v -X POST --data user=admin --data passwd=admin https://pikvm/api/auth/login
|
||||
...
|
||||
< Set-Cookie: auth_token=796cb83b11de4fcb749bc1bad14a91fb06dede84672b2f847fef1e988e6900de; Path=/
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user