FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

JCL-299: verify method by timea-solid · Pull Request #403 · inrupt/solid-client-java · GitHub

Repository navigation

JCL-299: verify method - #403

Merged
timea-solid merged 7 commits into
mainfrom
JCL-299-verify
Apr 14, 2023
Merged

timea-solid merged 7 commits into
mainfrom
JCL-299-verify

Conversation

timea-solid commented Apr 6, 2023 •
edited
Loading

Copy link
Copy Markdown
Contributor

@jholleran Could you please take a look at the verify(...) method I added. I understand there are options in the call. What can they be? is it different from access grant to access request?
Any help is welcome.
Conclusion: we took out options from call.

timea-solid requested a review from a team April 6, 2023 09:16
timea-solid temporarily deployed to ESS PodSpaces April 6, 2023 09:16 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces April 6, 2023 09:16 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext April 6, 2023 09:16 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces April 6, 2023 09:16 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces April 6, 2023 09:16 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext April 6, 2023 09:16 — with GitHub Actions Inactive
timea-solid marked this pull request as draft April 6, 2023 09:16
timea-solid changed the title JCL-299: verify call JCL-299: verify method Apr 6, 2023
timea-solid temporarily deployed to ESS PodSpaces April 6, 2023 12:58 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces April 6, 2023 12:58 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext April 6, 2023 12:58 — with GitHub Actions Inactive
return v1Metadata().thenCompose(metadata -> {

final Map<String, Object> presentation = new HashMap<>();
presentation.put(VERIFIABLE_CREDENTIAL, accessGrant);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The /verify endpoint can also take a VerifiablePresentation. Do you need this in this client?

if (isSuccess(status)) {
return processVerificationResult(input);
}
throw new AccessGrantException("Unable to perform Access Grant verify: HTTP error " + status,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

In the case of an error the response will also contain an error, errorDescription and an optional reason. These could be useful for a downstream client to know but they are getting dropped here and we are only giving them the status.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

According to the VC-API spec, the verify endpoint will return a 200 in cases where the credential is invalid, but there is no defined response for, say, 4xx or 5xx category errors.

I think it would be great for the client to try to parse 4xx/5xx error bodies as if they contain those response, but that can be part of an overall improvement in how errors are processed.

timea-solid temporarily deployed to ESS PodSpaces April 14, 2023 10:12 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces April 14, 2023 10:12 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext April 14, 2023 10:12 — with GitHub Actions Inactive
timea-solid marked this pull request as ready for review April 14, 2023 10:12
timea-solid temporarily deployed to ESS PodSpaces April 14, 2023 12:17 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS PodSpaces April 14, 2023 12:17 — with GitHub Actions Inactive
timea-solid temporarily deployed to ESS DevNext April 14, 2023 12:17 — with GitHub Actions Inactive

acoburn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

if (isSuccess(status)) {
return processVerificationResult(input);
}
throw new AccessGrantException("Unable to perform Access Grant verify: HTTP error " + status,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

According to the VC-API spec, the verify endpoint will return a 200 in cases where the credential is invalid, but there is no defined response for, say, 4xx or 5xx category errors.

I think it would be great for the client to try to parse 4xx/5xx error bodies as if they contain those response, but that can be part of an overall improvement in how errors are processed.

timea-solid merged commit dfbdc56 into main Apr 14, 2023
timea-solid deleted the JCL-299-verify branch April 14, 2023 15:28

This branch was previously deployed

2 inactive deployments
ESS DevNext — 879fd163 Deployed Apr 14, 2023 by timea-solid
ESS PodSpaces — 879fd163 Deployed Apr 14, 2023 by timea-solid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL