fix: separate Fifth Domain source deployment identities
This commit is contained in:
parent
711cd232ca
commit
83589aa2c2
27 changed files with 620 additions and 73 deletions
|
|
@ -67,6 +67,14 @@ class WorkOrderManager {
|
|||
return { ok: true, approvalToken, order: publicOrder(order) };
|
||||
}
|
||||
|
||||
bindApprover(handoffToken, authorizerId) {
|
||||
const order = this.findByHandoff(handoffToken);
|
||||
if (!order || order.state !== "pending") return false;
|
||||
order.authorizerId = String(authorizerId || "");
|
||||
this.persist();
|
||||
return true;
|
||||
}
|
||||
|
||||
failApprovalEmail(handoffToken) {
|
||||
const order = this.findByHandoff(handoffToken);
|
||||
if (!order || order.state !== "pending") return false;
|
||||
|
|
@ -112,6 +120,7 @@ class WorkOrderManager {
|
|||
action: order.action,
|
||||
actions: order.allowedActions || [order.action],
|
||||
resource: order.resource || "",
|
||||
authorizerId: order.authorizerId || "",
|
||||
createdAt: now,
|
||||
expiresAt: now + this.sessionTtl,
|
||||
maxExpiresAt: now + this.maxSessionLifetime,
|
||||
|
|
|
|||
Loading…
Reference in a new issue