eu-digital-identity-wallet / eudi-srv-web-verifier-endpoint-23220-4-kt

Web application (Backend Restful service) that acts as a Verifier/RP trusted end-point.
Apache License 2.0
12 stars 15 forks source link

DeviceResponse Validator #200

Closed babisRoutis closed 1 month ago

babisRoutis commented 1 month ago

Helpers:

Application:

dzarras commented 1 month ago

@babisRoutis Added a REST endpoint for validating MSO MDoc DeviceResponses. Please let me know of any comments.

babisRoutis commented 1 month ago

@dzarras Reduced the scope of the PR and the related issue, in order to merge it sooner.

Was thinking that if the validation outcome is valid we could return a list of documents where each "document" is a view of the mdoc. For instance:

Displayable attributes: String, Numbers etc

That's a nice to have though.

dzarras commented 1 month ago

@babisRoutis Ready for final review.

dzarras commented 1 month ago

@dzarras Reduced the scope of the PR and the related issue, in order to merge it sooner.

Was thinking that if the validation outcome is valid we could return a list of documents where each "document" is a view of the mdoc. For instance:

  • docType
  • a list of displayable attributes per namespace.

Displayable attributes: String, Numbers etc

That's a nice to have though.

@babisRoutis In case of validation success a simplified view of the successfully validated MDoc documents is now returned. e.g.:

[
  {
    "docType": "eu.europa.ec.eudi.pid.1",
    "attributes": {
      "eu.europa.ec.eudi.pid.1": [
        "age_over_18"
      ]
    }
  }
]