mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add get-totp
This commit is contained in:
parent
4212c7eff4
commit
07538e6c1d
1 changed files with 20 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ Currently these messages are implemented:
|
|||
- `lock-database`: Request for locking the database from client.
|
||||
- `database-locked`: A signal from KeePassXC, the current active database is locked.
|
||||
- `database-unlocked`: A signal from KeePassXC, the current active database is unlocked.
|
||||
- `get-totp`: Request for receiving the current TOTP.
|
||||
|
||||
### change-public-keys
|
||||
Request:
|
||||
|
|
@ -384,3 +385,22 @@ Response message data (success, decrypted):
|
|||
"uuid": "<group UUID>"
|
||||
}
|
||||
```
|
||||
|
||||
### get-totp (KeePassXC 2.6.1 and newer)
|
||||
Request (no unencrypted message is needed):
|
||||
```json
|
||||
{
|
||||
"action": "generate-password",
|
||||
"uuid": "<entry UUID>"
|
||||
}
|
||||
```
|
||||
|
||||
Response message data (success, decrypted):
|
||||
```json
|
||||
{
|
||||
"totp": <TOTP>,
|
||||
"version": "2.2.0",
|
||||
"success": "true",
|
||||
"nonce": "tZvLrBzkQ9GxXq9PvKJj4iAnfPT0VZ3Q"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue