From 5c2899b7516286df1187a4c7d37455089daf2e7b Mon Sep 17 00:00:00 2001 From: ase-101 Date: Thu, 9 Nov 2023 08:05:17 +0530 Subject: [PATCH] ES-4 Signed-off-by: ase-101 --- .../esignet-OIDC-flow-with-mock.postman_collection.json | 4 ++-- esignet-service/README.md | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/postman-collections/esignet-OIDC-flow-with-mock.postman_collection.json b/docs/postman-collections/esignet-OIDC-flow-with-mock.postman_collection.json index adc3bf04d..690a7c250 100644 --- a/docs/postman-collections/esignet-OIDC-flow-with-mock.postman_collection.json +++ b/docs/postman-collections/esignet-OIDC-flow-with-mock.postman_collection.json @@ -1952,7 +1952,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"requestTime\": \"{{$isoTimestamp}}\",\n \"request\": {\n \"clientId\": \"{{clientId}}\",\n \"scope\": \"sample_vc_ldp\",\n \"responseType\": \"code\",\n \"redirectUri\": \"{{redirectionUrl}}\",\n \"display\": \"popup\",\n \"prompt\": \"login\",\n \"acrValues\": \"mosip:idp:acr:generated-code\",\n \"nonce\" : \"{{nonce}}\",\n \"state\" : \"{{state}}\",\n \"claimsLocales\" : \"en\",\n \"codeChallenge\" : \"{{codeChallenge}}\",\n \"codeChallengeMethod\" : \"{{codeChallengeMethod}}\"\n }\n}", + "raw": "{\n \"requestTime\": \"{{$isoTimestamp}}\",\n \"request\": {\n \"clientId\": \"{{clientId}}\",\n \"scope\": \"mock_identity_vc_ldp\",\n \"responseType\": \"code\",\n \"redirectUri\": \"{{redirectionUrl}}\",\n \"display\": \"popup\",\n \"prompt\": \"login\",\n \"acrValues\": \"mosip:idp:acr:generated-code\",\n \"nonce\" : \"{{nonce}}\",\n \"state\" : \"{{state}}\",\n \"claimsLocales\" : \"en\",\n \"codeChallenge\" : \"{{codeChallenge}}\",\n \"codeChallengeMethod\" : \"{{codeChallengeMethod}}\"\n }\n}", "options": { "raw": { "language": "json" @@ -2320,7 +2320,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"format\": \"ldp_vc\",\n \"credential_definition\" : { \"type\" : [\"VerifiableCredential\", \"MOSIPVerifiableCredential\"], \"@context\" : [\"https://www.w3.org/2018/credentials/v1\"]},\n \"proof\": {\n \"proof_type\": \"jwt\",\n \"jwt\": \"{{proof_jwt}}\"\n }\n}", + "raw": "{\n \"format\": \"ldp_vc\",\n \"credential_definition\" : { \"type\" : [\"VerifiableCredential\", \"MockVerifiableCredential\"], \"@context\" : [\"https://www.w3.org/2018/credentials/v1\"]},\n \"proof\": {\n \"proof_type\": \"jwt\",\n \"jwt\": \"{{proof_jwt}}\"\n }\n}", "options": { "raw": { "language": "json" diff --git a/esignet-service/README.md b/esignet-service/README.md index 50ac16c72..e98e1f161 100644 --- a/esignet-service/README.md +++ b/esignet-service/README.md @@ -7,7 +7,10 @@ * OpenIdController - Endpoints specific to OIDC protocol like /userinfo and /.well-known/openid-configuration * SystemInfoController - Endpoints to get the pet public part of the keys managed in the keystore by keymanager. * KeyBindingController - Endpoints used by wallets to bind a key to an individual ID to support wallet local authentication. -* VCIController - Wallet initiated /credential endpoint returning just in time credential and /.well-known/openid-credential-issuer endpoint specific to [OpenID4VCI specification Draft 13](https://openid.github.io/OpenID4VCI/openid-4-verifiable-credential-issuance-wg-draft.html) +* VCIController - Wallet initiated /credential endpoint returning just in time credential and /.well-known/openid-credential-issuer endpoint specific to [OpenID4VCI specification](https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html) + +Note: VCI implementations currently only supports ldp_vc format with 'jwt' PoP. And we only issue scope based VC. +Both mock plugin and the MOSIP IDA plugin supports only scoped based VC issuance. ## e-Signet Plugins 1. We have well-defined plugin interfaces in esignet-intergration-api.