mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Remove the rusty-jwt-cli configuration
This commit is contained in:
@@ -1715,9 +1715,7 @@ func TestHandler_NewOrder(t *testing.T) {
|
||||
Now: time.Now,
|
||||
},
|
||||
},
|
||||
DPOP: &provisioner.DPOPOptions{
|
||||
ValidationExecPath: "true", // true will always exit with code 0
|
||||
},
|
||||
DPOP: &provisioner.DPOPOptions{},
|
||||
})
|
||||
acc := &acme.Account{ID: "accID"}
|
||||
nor := &NewOrderRequest{
|
||||
|
||||
@@ -70,9 +70,7 @@ func TestWireIntegration(t *testing.T) {
|
||||
Now: time.Now,
|
||||
},
|
||||
},
|
||||
DPOP: &provisioner.DPOPOptions{
|
||||
ValidationExecPath: "true", // true will always exit with code 0
|
||||
},
|
||||
DPOP: &provisioner.DPOPOptions{},
|
||||
})
|
||||
|
||||
// mock provisioner and linker
|
||||
|
||||
@@ -8,22 +8,12 @@ import (
|
||||
)
|
||||
|
||||
type DPOPOptions struct {
|
||||
// ValidationExecPath is the name of the executable to call for DPOP
|
||||
// validation.
|
||||
ValidationExecPath string `json:"validation-exec-path,omitempty"`
|
||||
// Backend signing key for DPoP access token
|
||||
SigningKey string `json:"key"`
|
||||
// URI template acme client must call to fetch the DPoP challenge proof (an access token from wire-server)
|
||||
DpopTarget string `json:"dpop-target"`
|
||||
}
|
||||
|
||||
func (o *DPOPOptions) GetValidationExecPath() string {
|
||||
if o == nil {
|
||||
return "rusty-jwt-cli"
|
||||
}
|
||||
return o.ValidationExecPath
|
||||
}
|
||||
|
||||
func (o *DPOPOptions) GetSigningKey() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user