Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ To log in at an open websocket, follow these steps:
- `encKey`: `keysDecrypted[:32]`
- `macKey`: `keysDecrypted[32:64]`

### Restoring closed sessions (not implemented)
### Restoring closed sessions
1. After sending `init` command, check whether you have `serverToken` and `clientToken`.
2. If so, send `messageTag,["admin","login","clientToken","serverToken","clientId","takeover"]`
3. The server should respond with `{"status": 200}`. Other statuses:
Expand All @@ -188,7 +188,7 @@ To log in at an open websocket, follow these steps:
- 405: Already logged in
- 409: Logged in from another location

### Resolving challenge (not implemented)
### Resolving challenge
4. When using old or expired `serverToken` and `clientToken`, you will be challenged to confirm that you still have valid encryption keys.
5. The challenge looks like this `messageTag,["Cmd",{"type":"challenge","challenge":"BASE_64_ENCODED_STRING=="}]`
6. Decode `challenge` string from Base64, sign it with your macKey, encode it back with Base64 and send `messageTag,["admin","challenge","BASE_64_ENCODED_STRING==","serverToken","clientId"]`
Expand Down