|
|
|
@ -275,10 +275,7 @@ func newAuthorization(ctx context.Context, az *acme.Authorization) error {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
targetTemplate := prov.GetOptions().GetDPOPOptions().DpopTarget
|
|
|
|
|
|
|
|
|
|
var target = ""
|
|
|
|
|
|
|
|
|
|
switch az.Identifier.Type {
|
|
|
|
|
case acme.WireID:
|
|
|
|
|
wireId, err := wire.ParseID([]byte(az.Identifier.Value))
|
|
|
|
@ -294,6 +291,16 @@ func newAuthorization(ctx context.Context, az *acme.Authorization) error {
|
|
|
|
|
return acme.NewError(acme.ErrorMalformedType, "DeviceId is not hexadecimal")
|
|
|
|
|
}
|
|
|
|
|
_ = decoded
|
|
|
|
|
|
|
|
|
|
var targetTemplate = ""
|
|
|
|
|
switch typ {
|
|
|
|
|
case acme.WIREOIDC01:
|
|
|
|
|
targetTemplate = prov.GetOptions().GetDPOPOptions().OidcTarget
|
|
|
|
|
case acme.WIREDPOP01:
|
|
|
|
|
targetTemplate = prov.GetOptions().GetDPOPOptions().DpopTarget
|
|
|
|
|
default:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tmpl, err := template.New("DeviceId").Parse(targetTemplate)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return acme.NewError(acme.ErrorMalformedType, "Misconfigured target template configuration")
|
|
|
|
|