mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:30:43 +00:00
fix(cli): retry admin device approval after ownership denial
This commit is contained in:
@@ -142,6 +142,13 @@ openclaw devices approve <requestId>
|
||||
openclaw devices reject <requestId>
|
||||
```
|
||||
|
||||
When an explicit approval is denied because the approving paired-device session
|
||||
was opened with pairing-only scope, the CLI retries the same request with
|
||||
`operator.admin`. This lets an existing admin-capable paired device recover a new
|
||||
Control UI/browser pairing without editing `devices/paired.json` by hand. The
|
||||
Gateway still validates the retried connection; tokens that cannot authenticate
|
||||
with `operator.admin` remain blocked.
|
||||
|
||||
If the same device retries with different auth details (for example different
|
||||
role/scopes/public key), the previous pending request is superseded and a new
|
||||
`requestId` is created.
|
||||
|
||||
@@ -78,8 +78,9 @@ When approving a device request:
|
||||
`operator.admin`.
|
||||
|
||||
For paired-device token sessions, management is self-scoped unless the caller
|
||||
also has `operator.admin`: non-admin callers can rotate, revoke, or remove only
|
||||
their own device entry.
|
||||
also has `operator.admin`: non-admin callers see only their own pairing entries,
|
||||
can approve or reject only their own pending request, and can rotate, revoke, or
|
||||
remove only their own device entry.
|
||||
|
||||
## Node pairing approvals
|
||||
|
||||
|
||||
Reference in New Issue
Block a user