-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add example of connectionless presentation request (#193)
Signed-off-by: Cristian G <[email protected]>
- Loading branch information
1 parent
e03ebbc
commit eed1736
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
edge-agent-sdk/docs/examples/ConnectionlessPresentationRequest.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Connectionless presentation request | ||
## Requirements | ||
1. A working Identus Mediator and an Identus Cloud Agent. | ||
2. A holder who already has a JWT Credential issued | ||
|
||
> NOTE: | ||
> | ||
> Please follow the [Quick started guide](https://docs.atalaprism.io/docs/quick-start) to establish mediation, | ||
> establish a connection as a holder and, issue a jwt credential. | ||
## Flow | ||
1. The verifier sill need to generate an oob with the presentation request inside: | ||
|
||
``` | ||
curl --location 'http:///cloud-agent/present-proof/presentations/invitation' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"goalCode" : "present-vp", | ||
"goal" : "Request proof of vaccination information", | ||
"proofs": [], | ||
"options": { | ||
"challenge": "11c91493-01b3-4c4d-ac36-b336bab5bddf", | ||
"domain": "https://prism-verifier.com" | ||
} | ||
} | ||
``` | ||
|
||
The response looks like this: | ||
|
||
``` | ||
{ | ||
"presentationId": "715bc063-cd61-4049-834c-465b3eb19042", | ||
"thid": "71a16da3-97ff-460a-b5f9-25a61fe864f4", | ||
"role": "Verifier", | ||
"status": "InvitationGenerated", | ||
"proofs": [], | ||
"data": [], | ||
"goalCode": "present-vp", | ||
"goal": "Request proof of vaccination information", | ||
"myDid": "did:peer:2.Ez6LSt2C1xviB7nFEUHJAyWqvDF2xyJtQHWafQMxmy1SySoH6.Vz6MkgMChqZVQ47G88EBY6QZoPbBsCqByhtyfA3TQpyBKn7Ej.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6Imh0dHA6Ly8xOTIuMTY4LjEuNDQ6ODAwMC9kaWRjb21tIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfX0", | ||
"invitation": { | ||
"id": "71a16da3-97ff-460a-b5f9-25a61fe864f4", | ||
"type": "https://didcomm.org/out-of-band/2.0/invitation", | ||
"from": "did:peer:2.Ez6LSt2C1xviB7nFEUHJAyWqvDF2xyJtQHWafQMxmy1SySoH6.Vz6MkgMChqZVQ47G88EBY6QZoPbBsCqByhtyfA3TQpyBKn7Ej.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6Imh0dHA6Ly8xOTIuMTY4LjEuNDQ6ODAwMC9kaWRjb21tIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfX0", | ||
"invitationUrl": "https://my.domain.com/path?_oob=eyJpZCI6IjcxYTE2ZGEzLTk3ZmYtNDYwYS1iNWY5LTI1YTYxZmU4NjRmNCIsInR5cGUiOiJodHRwczovL2RpZGNvbW0ub3JnL291dC1vZi1iYW5kLzIuMC9pbnZpdGF0aW9uIiwiZnJvbSI6ImRpZDpwZWVyOjIuRXo2TFN0MkMxeHZpQjduRkVVSEpBeVdxdkRGMnh5SnRRSFdhZlFNeG15MVN5U29INi5WejZNa2dNQ2hxWlZRNDdHODhFQlk2UVpvUGJCc0NxQnlodHlmQTNUUXB5QktuN0VqLlNleUowSWpvaVpHMGlMQ0p6SWpwN0luVnlhU0k2SW1oMGRIQTZMeTh4T1RJdU1UWTRMakV1TkRRNk9EQXdNQzlrYVdSamIyMXRJaXdpY2lJNlcxMHNJbUVpT2xzaVpHbGtZMjl0YlM5Mk1pSmRmWDAiLCJib2R5Ijp7ImdvYWxfY29kZSI6InByZXNlbnQtdnAiLCJnb2FsIjoiUmVxdWVzdCBwcm9vZiBvZiB2YWNjaW5hdGlvbiBpbmZvcm1hdGlvbiIsImFjY2VwdCI6W119LCJhdHRhY2htZW50cyI6W3siaW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Jam9pWkcwaUxDSnpJanA3SW5WeWFTSTZJbWgwZEhBNkx5OHhPVEl1TVRZNExqRXVORFE2T0RBd01DOWthV1JqYjIxdElpd2ljaUk2VzEwc0ltRWlPbHNpWkdsa1kyOXRiUzkyTWlKZGZYMCJ9fX1dLCJjcmVhdGVkX3RpbWUiOjE3MjQ0MjY1NjgsImV4cGlyZXNfdGltZSI6MTcyNDQyNjg2OH0=" | ||
}, | ||
"metaRetries": 5 | ||
} | ||
``` | ||
|
||
2. Holder processes the oob at the connection tab, and it stores the presentation request as a message. | ||
3. Holder will move now to the messages tab, act upon that request to send a presentation by selecting a credential. |