From 0f33ca1a9192ef25c75e32ca6b6c976957b461c3 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 20 Sep 2020 00:27:09 +0300 Subject: [PATCH] Update api.md --- pages/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api.md b/pages/api.md index a3649fee..d5b12042 100644 --- a/pages/api.md +++ b/pages/api.md @@ -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=/ ...