Skip to content

Commit

Permalink
Merge pull request #131 from evanlinjin/fix/m2-doc-hypervisor-auth-st…
Browse files Browse the repository at this point in the history
…ates

Document hypervisor auth states.
  • Loading branch information
jdknives committed Jan 27, 2020
2 parents 1fe102b + 79d3148 commit ada8421
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions cmd/hypervisor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -23,3 +19,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.
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ada8421

Please sign in to comment.