Skip to content

Commit

Permalink
Two command line changes: (#871)
Browse files Browse the repository at this point in the history
- OOBI resolve now waits until the AID is in Kevers before completing
- Witness authenticate includes the CESR http header.

Signed-off-by: pfeairheller <[email protected]>
  • Loading branch information
pfeairheller authored Oct 4, 2024
1 parent 5911c13 commit 470a9ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/keri/app/cli/commands/oobi/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def waitDo(self, tymth, tock=0.0):
yield 0.25

obr = self.obi.hby.db.roobi.get(keys=(self.oobi,))
if self.force:
while obr.cid not in self.hby.kevers:
self.hby.kvy.processEscrows()
yield 0.25

print(self.oobi, obr.state)

self.remove([self.hbyDoer, *self.obi.doers, *self.authn.doers])
4 changes: 3 additions & 1 deletion src/keri/app/cli/commands/witness/authenticate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from keri.app import httping, connecting
from keri.app.agenting import httpClient
from keri.app.cli.common import existing
from keri.app.httping import CESR_DESTINATION_HEADER
from keri.core import coring

logger = help.ogler.getLogger()
Expand Down Expand Up @@ -107,7 +108,8 @@ def authDo(self, tymth, tock=0.0):
fargs['delkel'] = delkel.decode("utf-8")

headers = (Hict([
("Content-Type", "multipart/form-data")
("Content-Type", "multipart/form-data"),
(CESR_DESTINATION_HEADER, self.witness)
]))

client, clientDoer = httpClient(self.hab, self.witness)
Expand Down
2 changes: 1 addition & 1 deletion src/keri/end/ending.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def siginput(name, method, path, headers, fields, hab=None, signers=None, expire
expires (str): iso8601 formated date string indicating exiration of header signature
signers (list): Optional signer objects used to sign the values
hab (Hab): Optional Hab used to sign the values. One of signers or Hab is required
fields (str): Fields in request to sign. Includes special fields as well as Header fields
fields (list): Fields in request to sign. Includes special fields as well as Header fields
headers (dict): HTTP request headers
path (str): HTTP request path
method (str): HTTP request method (POST, GET, PUT, etc)
Expand Down

0 comments on commit 470a9ab

Please sign in to comment.