Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change authorization_details to use credential_description from metadata #137

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions examples/authorization_details.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
[
{
"type": "openid_credential",
"format": "jwt_vc_json",
"credential_definition": {
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
]
}
"credential_configuration_id": "UniversityDegreeCredential"
}
]
6 changes: 1 addition & 5 deletions examples/authorization_details_jwt_vc_json.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
[
{
"type": "openid_credential",
"format": "jwt_vc_json",
"credential_configuration_id": "UniversityDegreeCredential",
"credential_definition": {
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {},
"family_name": {},
Expand Down
10 changes: 1 addition & 9 deletions examples/authorization_details_ldp_vc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
[
{
"type": "openid_credential",
"format": "ldp_vc",
"credential_configuration_id": "UniversityDegree_LDP_VC",
"credential_definition": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
],
"credentialSubject": {
"given_name": {},
"family_name": {},
Expand Down
5 changes: 2 additions & 3 deletions examples/authorization_details_mso_doc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[
{
"type": "openid_credential",
"format": "mso_doc",
"doctype": "org.iso.18013.5.1.mDL",
"type":"openid_credential",
"credential_configuration_id": "org.iso.18013.5.1.mDL",
"claims": {
"org.iso.18013.5.1": {
"given_name": {},
Expand Down
15 changes: 2 additions & 13 deletions examples/authorization_details_multiple_credentials.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
[
{
"type":"openid_credential",
"format": "ldp_vc",
"credential_definition": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
]
}
"credential_configuration_id": "UniversityDegreeCredential"
},
{
"type":"openid_credential",
"format": "mso_mdoc",
"doctype":"org.iso.18013.5.1.mDL"
"credential_configuration_id": "org.iso.18013.5.1.mDL"
}
]
8 changes: 1 addition & 7 deletions examples/authorization_details_with_as.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
"locations": [
"https://credential-issuer.example.com"
],
"format": "jwt_vc_json",
"credential_definition": {
"type": [
"VerifiableCredential",
"UniversityDegreeCredential"
]
}
"credential_configuration_id": "UniversityDegreeCredential"
}
]
2 changes: 1 addition & 1 deletion examples/credential_issuer_metadata_jwt_vc_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"locale": "fr-FR"
}
],
"credentials_supported": {
"credential_configurations_supported": {
"UniversityDegreeCredential": {
"format": "jwt_vc_json",
"scope": "UniversityDegree",
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_metadata_jwt_vc_json.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"credentials_supported": {
"credential_configurations_supported": {
"UniversityDegreeCredential": {
"format": "jwt_vc_json",
"scope": "UniversityDegree",
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_metadata_ldp_vc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"credentials_supported": {
"credential_configurations_supported": {
"UniversityDegree_LDP_VC": {
"format": "ldp_vc",
"@context": [
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_metadata_mso_mdoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"credentials_supported": {
"credential_configurations_supported": {
"org.iso.18013.5.1.mDL": {
"format": "mso_mdoc",
"doctype": "org.iso.18013.5.1.mDL",
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_offer_authz_code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Content-Type: application/json

{
"credential_issuer": "https://credential-issuer.example.com",
"credentials": [
"credential_configurations": [
"UniversityDegreeCredential"
],
"grants": {
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_offer_by_reference.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"credential_issuer": "https://credential-issuer.example.com",
"credentials": [
"credential_configurations": [
"UniversityDegree_LDP_VC"
],
"grants": {
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_offer_multiple_credentials.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"credential_issuer": "https://credential-issuer.example.com",
"credentials": [
"credential_configurations": [
"UniversityDegreeCredential",
"org.iso.18013.5.1.mDL"
],
Expand Down
2 changes: 1 addition & 1 deletion examples/credential_offer_pre-authz_code.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"credential_issuer": "https://credential-issuer.example.com",
"credentials": [
"credential_configurations": [
"UniversityDegreeCredential"
],
"grants": {
Expand Down
71 changes: 34 additions & 37 deletions openid-4-verifiable-credential-issuance-1_0.md

Large diffs are not rendered by default.