Skip to content

Commit

Permalink
Fix: Table of contents and add an example for scope parameter usage s…
Browse files Browse the repository at this point in the history
…ection

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Feb 20, 2024
1 parent f22a7cc commit f279075
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ewc-rfc002-present-verifiable-credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- [2.0 Motivation](#20motivation)
- [3.0 Messages](#30messages)
- [3.1 Authorisation request](#31authorisation-request)
- [3.1.1 Scope Parameter Usage](#311-scope-parameter-usage)
- [3.2 Authorisation response](#32authorisation-response)
- [4.0 Alternate response format](#40alternate-response-format)
- [5.0 Implementors](#50implementors)
Expand Down Expand Up @@ -75,7 +76,6 @@ Authorisation requests can be presented to the wallet by verifying in two ways:
```sh
openid4vp://?client_id=https://example.verifier.com
&response_type=vp_token
&scope=com.example.passport_credential_presentation
&response_uri=https://example.verifier.com/direct_post
&response_mode=direct_post
&state=100b8521-461e-4f79-931e-ea5710c4fa5c
Expand Down Expand Up @@ -160,6 +160,18 @@ According to OIDCVP draft version >= 18, the scope parameter can be used as an o
4. An example could be: `scope=com.example.passport_credential_presentation`
5. The specific scope values and their mapping to Presentation Definitions are not defined in this specification.

An example usage of `scope` parameter is as given below:

```sh
openid4vp://?client_id=https://example.verifier.com
&response_type=vp_token
&scope=com.example.passport_credential_presentation
&response_uri=https://example.verifier.com/direct_post
&response_mode=direct_post
&state=100b8521-461e-4f79-931e-ea5710c4fa5c
&nonce=e6759e72-37e4-42f7-ab48-a9368971620f
```

## 3.2 Authorisation response

Authorisation response is sent by constructing the `vp_token` and `presentation_submission` values. An example `vp_token` is as given:
Expand Down

0 comments on commit f279075

Please sign in to comment.