mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 19:28:16 +00:00
Add missing cert link for order
This commit is contained in:
@@ -261,10 +261,12 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handler: async (req, res) => {
|
handler: async (req, res) => {
|
||||||
const { profileId, accountId } = await validateExistingAccount({
|
const { profileId, accountId, payload } = await validateExistingAccount({
|
||||||
req,
|
req
|
||||||
schema: FinalizeAcmeOrderBodySchema
|
|
||||||
});
|
});
|
||||||
|
if (payload !== "") {
|
||||||
|
throw new AcmeMalformedError({ detail: "Payload should be empty" });
|
||||||
|
}
|
||||||
return sendAcmeResponse(
|
return sendAcmeResponse(
|
||||||
res,
|
res,
|
||||||
profileId,
|
profileId,
|
||||||
|
|||||||
@@ -276,7 +276,9 @@ export const pkiAcmeServiceFactory = ({
|
|||||||
authorizations: order.authorizations.map((auth: TPkiAcmeAuths) =>
|
authorizations: order.authorizations.map((auth: TPkiAcmeAuths) =>
|
||||||
buildUrl(profileId, `/authorizations/${auth.id}`)
|
buildUrl(profileId, `/authorizations/${auth.id}`)
|
||||||
),
|
),
|
||||||
finalize: buildUrl(profileId, `/orders/${order.id}/finalize`)
|
finalize: buildUrl(profileId, `/orders/${order.id}/finalize`),
|
||||||
|
certificate:
|
||||||
|
order.status === AcmeOrderStatus.Valid ? buildUrl(profileId, `/orders/${order.id}/certificate`) : undefined
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user