From 74712f8f2b33c3d6f746d2e20e71e26d3b24406e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Mon, 27 Jan 2020 18:28:41 +0800 Subject: [PATCH 1/2] Document hypervisor auth states. --- cmd/hypervisor/README.md | 6 ++++++ vendor/modules.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/hypervisor/README.md b/cmd/hypervisor/README.md index 929f636f3..0283ad115 100644 --- a/cmd/hypervisor/README.md +++ b/cmd/hypervisor/README.md @@ -23,3 +23,9 @@ By default, the RESTful API is served on `:8080`. ## Endpoints Documentation Endpoints are documented in the provided [Postman](https://www.getpostman.com/) file: `hypervisor.postman_collection.json`. + +### Authentication information + +- When the authentication cookie is invalid, the hypervisor will return code `401`. +- The default authentication cookie timeout is 12 hours. This can be configured in the hypervisor config file: `cookies.expires_duration`. +- There is currently no enforcement of when a user should change their password. \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index 61bdbfb09..19d353d52 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/SkycoinProject/dmsg v0.0.0-20200116114634-91be578a1895 => ../dmsg +# github.com/SkycoinProject/dmsg v0.0.0-20200116114634-91be578a1895 github.com/SkycoinProject/dmsg github.com/SkycoinProject/dmsg/cipher github.com/SkycoinProject/dmsg/disc From 79d314846217f8a1dc7e1a0d619d7d944c84a027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Mon, 27 Jan 2020 18:32:25 +0800 Subject: [PATCH 2/2] Fixed hypervisor README. --- cmd/hypervisor/README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/hypervisor/README.md b/cmd/hypervisor/README.md index 0283ad115..3a9a7b2e3 100644 --- a/cmd/hypervisor/README.md +++ b/cmd/hypervisor/README.md @@ -5,16 +5,12 @@ Hypervisor exposes node management operations via web API. **Generate config file:** ```bash - +$ hypervisor gen-config ``` **Run with mock data:** ```bash -# Generate config file. -$ hypervisor gen-config - -# Run. $ hypervisor --mock ```