mirror of https://github.com/pikvm/pikvm.git
Update api.md
This commit is contained in:
parent
374be8531c
commit
0f33ca1a91
|
|
@ -16,10 +16,10 @@ There are two options here:
|
||||||
```
|
```
|
||||||
$ curl -k --user admin:admin https://pikvm/api/auth/check
|
$ 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`:
|
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=/
|
< Set-Cookie: auth_token=796cb83b11de4fcb749bc1bad14a91fb06dede84672b2f847fef1e988e6900de; Path=/
|
||||||
...
|
...
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue