Skip to content

Commit

Permalink
Fix #5: EWC RFC 001: Wrong order for resolving discovery endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Feb 7, 2024
1 parent 3a09351 commit 0b68a17
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions ewc-rfc001-issue-verifiable-credential.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,22 +137,68 @@ For pre-authorised flow, the credential response is as given:

## 3.3 Discover request

Here, the holder wallet requests the issuer’s authorisation server configurations.
Here, the holder wallet requests the issuer’s authorisation server configurations.

Resolve `/.well-known/openid-credential-issuer` endpoint for `credential_issuer` URI in the credential offer response.

```http
GET https://server.example.com/.well-known/openid-configuration
GET https://server.example.com/.well-known/openid-credential-issuer
```

Resolve `/.well-known/openid-configuration` endpoint for `credential_issuer` URI in the credential offer response. The holder wallets also sent the same request to get the issuer’s configurations.
Resolve `/.well-known/openid-configuration` endpoint for `authorization_server` URI present in the response for the above.

```http
GET https://server.example.com/.well-known/openid-credential-issuer
GET https://server.example.com/.well-known/openid-configuration
```

Resolve `/.well-known/openid-credential-issuer` endpoint for `credential_issuer` URI in the credential offer response.

## 3.4 Discover response

Once the well-known endpoint for **issuer server** configuration is resolved, the response is as given below:

```json
{
"credential_issuer": "https://server.example.com",
"authorization_server": "https://server.example.com",
"credential_endpoint": "https://server.example.com/credential",
"deferred_credential_endpoint": "https://server.example.com/credential_deferred",
"display": {
"name": "Issuer",
"location": "Belgium",
"locale": "en-GB",
"cover": {
"url": "https://server.example.com/cover.jpeg",
"alt_text": "Issuer"
},
"logo": {
"url": "https://server.example.com/logo.jpg",
"alt_text": "Issuer"
},
"description": "For queries about how we are managing your data please contact the Data Protection Officer."
},
"credentials_supported": [
{
"format": "jwt_vc",
"types": [
"VerifiableCredential",
"VerifiableAttestation",
"VerifiablePortableDocumentA1"
],
"trust_framework": {
"name": "ebsi",
"type": "Accreditation",
"uri": "TIR link towards accreditation"
},
"display": [
{
"name": "Portable Document A1",
"locale": "en-GB"
}
]
}
]
}
```

Once the well-known endpoint for **authorisation server** configuration is resolved, the response is as given below:

```json
Expand Down Expand Up @@ -226,52 +272,6 @@ Once the well-known endpoint for **authorisation server** configuration is resol
}
```

Once the well-known endpoint for **issuer server** configuration is resolved, the response is as given below:

```json
{
"credential_issuer": "https://server.example.com",
"authorization_server": "https://server.example.com",
"credential_endpoint": "https://server.example.com/credential",
"deferred_credential_endpoint": "https://server.example.com/credential_deferred",
"display": {
"name": "Issuer",
"location": "Belgium",
"locale": "en-GB",
"cover": {
"url": "https://server.example.com/cover.jpeg",
"alt_text": "Issuer"
},
"logo": {
"url": "https://server.example.com/logo.jpg",
"alt_text": "Issuer"
},
"description": "For queries about how we are managing your data please contact the Data Protection Officer."
},
"credentials_supported": [
{
"format": "jwt_vc",
"types": [
"VerifiableCredential",
"VerifiableAttestation",
"VerifiablePortableDocumentA1"
],
"trust_framework": {
"name": "ebsi",
"type": "Accreditation",
"uri": "TIR link towards accreditation"
},
"display": [
{
"name": "Portable Document A1",
"locale": "en-GB"
}
]
}
]
}
```

## 3.5 Authorisation request

The authorisation request is to grant access to the credential endpoint. Below is an example of such a request:
Expand Down

0 comments on commit 0b68a17

Please sign in to comment.