|
|
|
@ -362,6 +362,10 @@ func wireOIDC01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
|
|
|
|
|
if !ok {
|
|
|
|
|
return NewErrorISE("missing provisioner")
|
|
|
|
|
}
|
|
|
|
|
wireOptions := prov.GetOptions().GetWireOptions()
|
|
|
|
|
if wireOptions == nil {
|
|
|
|
|
return NewErrorISE("no Wire options available")
|
|
|
|
|
}
|
|
|
|
|
linker, ok := LinkerFromContext(ctx)
|
|
|
|
|
if !ok {
|
|
|
|
|
return NewErrorISE("missing linker")
|
|
|
|
@ -378,11 +382,6 @@ func wireOIDC01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
|
|
|
|
|
return WrapErrorISE(err, "error unmarshalling challenge data")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wireOptions, err := prov.GetOptions().GetWireOptions()
|
|
|
|
|
if err != nil {
|
|
|
|
|
return WrapErrorISE(err, "failed getting Wire options")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
oidcOptions := wireOptions.GetOIDCOptions()
|
|
|
|
|
verifier := oidcOptions.GetProvider(ctx).Verifier(oidcOptions.GetConfig())
|
|
|
|
|
idToken, err := verifier.Verify(ctx, oidcPayload.IDToken)
|
|
|
|
@ -490,6 +489,10 @@ func wireDPOP01Validate(ctx context.Context, ch *Challenge, db DB, accountJWK *j
|
|
|
|
|
if !ok {
|
|
|
|
|
return NewErrorISE("missing provisioner")
|
|
|
|
|
}
|
|
|
|
|
wireOptions := prov.GetOptions().GetWireOptions()
|
|
|
|
|
if wireOptions == nil {
|
|
|
|
|
return NewErrorISE("no Wire options available")
|
|
|
|
|
}
|
|
|
|
|
linker, ok := LinkerFromContext(ctx)
|
|
|
|
|
if !ok {
|
|
|
|
|
return NewErrorISE("missing linker")
|
|
|
|
@ -510,11 +513,6 @@ func wireDPOP01Validate(ctx context.Context, ch *Challenge, db DB, accountJWK *j
|
|
|
|
|
return WrapErrorISE(err, "error parsing device id")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wireOptions, err := prov.GetOptions().GetWireOptions()
|
|
|
|
|
if err != nil {
|
|
|
|
|
return WrapErrorISE(err, "failed getting Wire options")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dpopOptions := wireOptions.GetDPOPOptions()
|
|
|
|
|
issuer, err := dpopOptions.EvaluateTarget(clientID.DeviceID)
|
|
|
|
|
if err != nil {
|
|
|
|
|