mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Return auth token
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user