Return auth token

This commit is contained in:
Fang-Pen Lin
2025-10-30 12:23:22 -07:00
parent 1319ccc0d3
commit a3f2ee47f6
3 changed files with 5 additions and 5 deletions

View File

@@ -15,4 +15,4 @@ Feature: New Order
"""
Then I create a RSA private key pair as cert_key
Then I sign the certificate signing request csr with private key cert_key and output it as csr_pem in PEM format
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order

View File

@@ -99,10 +99,10 @@ def step_impl(context: Context, email: str, kid: str, secret: str, account_var:
@then(
"I submit the certificate signing request PEM {pem_var} certificate order to the ACME server"
"I submit the certificate signing request PEM {pem_var} certificate order to the ACME server as {order_var}"
)
def step_impl(context: Context, pem_var: str):
context.acme_order = context.acme_client.new_order(context.vars[pem_var])
def step_impl(context: Context, pem_var: str, order_var: str):
context.vars[order_var] = context.acme_client.new_order(context.vars[pem_var])
@when("I create certificate signing request as {csr_var}")

View File

@@ -515,7 +515,7 @@ export const pkiAcmeServiceFactory = ({
type: "http-01",
url: buildUrl(`/api/v1/pki/acme/profiles/${profileId}/authorizations/${authzId}/challenges/http-01`),
status: "pending",
token: "FIXME-challenge-token"
token: auth.token
}
]
},