Skip to content

Commit

Permalink
Fix L3-iGrant/api#486: After testing with the ITB found that OW holde…
Browse files Browse the repository at this point in the history
…r is not able to receive credential if issuer is of a different vendor
  • Loading branch information
albinpa authored and georgepadayatti committed Oct 22, 2024
1 parent 4aa4862 commit 088ebeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdjwt/pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ def validate_and_deserialise_presentation_definition(
)
return PresentationDefinition(**presentation_definition)
except exceptions.ValidationError as e:
raise PresentationDefinitionValidationError(e.message)
#FIXME: Temporary hack to validate presentation definition from itb
if e.message == "Additional properties are not allowed ('name' was unexpected)":
return PresentationDefinition(**presentation_definition)
else:
raise PresentationDefinitionValidationError(e.message)


def validate_and_deserialise_presentation_submission(
Expand Down

0 comments on commit 088ebeb

Please sign in to comment.