diff --git a/component/profile/reader/file/creator.go b/component/profile/reader/file/creator.go index e4fd73ae4..22f1f99e5 100644 --- a/component/profile/reader/file/creator.go +++ b/component/profile/reader/file/creator.go @@ -109,6 +109,11 @@ func (c *Creator) createDID( Relationship: did.Authentication, Embedded: true, }}, + AssertionMethod: []did.Verification{{ + VerificationMethod: *authentication, + Relationship: did.AssertionMethod, + Embedded: true, + }}, } keys := [2]interface{}{} @@ -246,6 +251,11 @@ func (c *Creator) ionDID( Relationship: did.Authentication, Embedded: true, }}, + AssertionMethod: []did.Verification{{ + VerificationMethod: *vm, + Relationship: did.AssertionMethod, + Embedded: true, + }}, } if difDidOrigin != "" { diff --git a/pkg/service/oidc4vp/oidc4vp_service.go b/pkg/service/oidc4vp/oidc4vp_service.go index d8d9d61c7..eb6a0fcae 100644 --- a/pkg/service/oidc4vp/oidc4vp_service.go +++ b/pkg/service/oidc4vp/oidc4vp_service.go @@ -483,7 +483,7 @@ func (s *Service) extractClaimData( opts := []presexch.MatchOption{ presexch.WithCredentialOptions( verifiable.WithDataIntegrityVerifier(diVerifier), - verifiable.WithExpectedDataIntegrityFields(crypto.Authentication, "", ""), + verifiable.WithExpectedDataIntegrityFields(crypto.AssertionMethod, "", ""), verifiable.WithJSONLDDocumentLoader(s.documentLoader), verifiable.WithPublicKeyFetcher(verifiable.NewVDRKeyResolver(s.vdr).PublicKeyFetcher())), presexch.WithDisableSchemaValidation(),