Fix http signature key url
This commit is contained in:
parent
8cf737fc31
commit
038c410308
|
@ -57,11 +57,10 @@ export async function buildSignedRequestOptions (options: {
|
||||||
actor = await getServerActor()
|
actor = await getServerActor()
|
||||||
}
|
}
|
||||||
|
|
||||||
const keyId = actor.url
|
|
||||||
return {
|
return {
|
||||||
algorithm: HTTP_SIGNATURE.ALGORITHM,
|
algorithm: HTTP_SIGNATURE.ALGORITHM,
|
||||||
authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME,
|
authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME,
|
||||||
keyId,
|
keyId: actor.getPublicKeyUrl(),
|
||||||
key: actor.privateKey,
|
key: actor.privateKey,
|
||||||
headers: options.hasPayload
|
headers: options.hasPayload
|
||||||
? HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD
|
? HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD
|
||||||
|
|
Loading…
Reference in New Issue