Skip to content

Commit

Permalink
[INJICERT-248] add JSON config for docker-compose setup
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Vardhan <[email protected]>
  • Loading branch information
vharsh committed Oct 17, 2024
1 parent 7c45f05 commit 19dd010
Show file tree
Hide file tree
Showing 4 changed files with 1,348 additions and 314 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,127 +12,4 @@ mosip.certify.cache.store.individual-id=true
# TODO: Onboard secrets for local build
mosip.certify.mock.vciplugin.issuer.key-cert=dummy
mosip.certify.mock.vciplugin.ca.key-cert=dummy
mosip.certify.key-values={\
'vd11' : { \
'credential_issuer': '${mosip.certify.identifier}', \
'credential_endpoint': '${mosip.certify.identifier}${server.servlet.path}/issuance/vd11/credential', \
'credentials_supported': {\
{\
'format': 'ldp_vc',\
'id': 'MockVerifiableCredential_ldp', \
'scope' : 'mock_identity_vc_ldp',\
'cryptographic_binding_methods_supported': {'did:jwk'},\
'cryptographic_suites_supported': {'RsaSignature2018'},\
'proof_types_supported': {'jwt'},\
'credential_definition': {\
'type': {'VerifiableCredential','MockVerifiableCredential'},\
'credentialSubject': {\
'fullName': { 'display': {{'name': 'Full Name', 'locale': 'en' }}},\
'phone': { 'display': {{'name': 'Phone Number', 'locale': 'en' }}},\
'dateOfBirth': { 'display': {{'name': 'DOB', 'locale': 'en' }}},\
'gender': { 'display': {{'name': 'Gender', 'locale': 'en' }}},\
'email': { 'display': {{'name': 'Email Id', 'locale': 'en' }}},\
'region': { 'display': {{'name': 'Region', 'locale': 'en' }}},\
'province': { 'display': {{'name': 'Province', 'locale': 'en' }}},\
'UIN': { 'display': {{'name': 'UIN', 'locale': 'en' }}},\
'VID': { 'display': {{'name': 'VID', 'locale': 'en' }}},\
'postalCode': { 'display': {{'name': 'Postal Code', 'locale': 'en' }}}\
}\
},\
'display': {{'name': 'Mock Verifiable Credential', \
'locale': 'en', \
'logo': {'url': '${mosipbox.public.url}/logo.png','alt_text': 'a square logo of a MOSIP'},\
'background_color': '#12107c',\
'text_color': '#FFFFFF'}}\
}\
}\
},\
'vd12' : {\
'credential_issuer': '${mosip.certify.identifier}', \
'authorization_servers': {'${mosip.certify.authorization.url}'}, \
'credential_endpoint': '${mosip.certify.identifier}${server.servlet.path}/issuance/vd12/credential', \
'display': {{'name': 'Mock Verifiable Credential', 'locale': 'en'}},\
'credentials_supported' : { \
'MockVerifiableCredential_ldp' : {\
'format': 'ldp_vc',\
'scope' : 'mock_identity_vc_ldp',\
'cryptographic_binding_methods_supported': {'did:jwk'},\
'cryptographic_suites_supported': {'RsaSignature2018'},\
'proof_types_supported': {'jwt'},\
'credential_definition': {\
'type': {'VerifiableCredential','MockVerifiableCredential'},\
'credentialSubject': {\
'fullName': { 'display': {{'name': 'Full Name', 'locale': 'en' }}},\
'phone': { 'display': {{'name': 'Phone Number', 'locale': 'en' }}},\
'dateOfBirth': { 'display': {{'name': 'DOB', 'locale': 'en' }}},\
'gender': { 'display': {{'name': 'Gender', 'locale': 'en' }}},\
'email': { 'display': {{'name': 'Email Id', 'locale': 'en' }}},\
'region': { 'display': {{'name': 'Region', 'locale': 'en' }}},\
'province': { 'display': {{'name': 'Province', 'locale': 'en' }}},\
'UIN': { 'display': {{'name': 'UIN', 'locale': 'en' }}},\
'VID': { 'display': {{'name': 'VID', 'locale': 'en' }}},\
'postalCode': { 'display': {{'name': 'Postal Code', 'locale': 'en' }}}\
}},\
'display': {{'name': 'Mock Verifiable Credential', \
'locale': 'en', \
'logo': {'url': '${mosipbox.public.url}/logo.png','alt_text': 'a square logo of a MOSIP'},\
'background_color': '#12107c',\
'text_color': '#FFFFFF'}},\
'order' : {'fullName','phone','dateOfBirth','gender','email','region','province','UIN', 'VID', 'postalCode'}\
}\
}\
},\
'latest' : {\
'credential_issuer': '${mosip.certify.identifier}', \
'authorization_servers': {'${mosip.certify.authorization.url}'}, \
'credential_endpoint': '${mosip.certify.identifier}${server.servlet.path}/issuance/credential', \
'display': {{'name': 'Mock Verifiable Credential', 'locale': 'en'}},\
'credential_configurations_supported' : { \
'MockVerifiableCredential_ldp' : {\
'format': 'ldp_vc',\
'scope' : 'mock_identity_vc_ldp',\
'cryptographic_binding_methods_supported': {'did:jwk'},\
'credential_signing_alg_values_supported': {'RsaSignature2018'},\
'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'PS256', 'ES256'}}},\
'credential_definition': {\
'type': {'VerifiableCredential','MockVerifiableCredential'},\
'credentialSubject': {\
'fullName': { 'display': {{'name': 'Full Name', 'locale': 'en' }}},\
'phone': { 'display': {{'name': 'Phone Number', 'locale': 'en' }}},\
'dateOfBirth': { 'display': {{'name': 'DOB', 'locale': 'en' }}},\
'gender': { 'display': {{'name': 'Gender', 'locale': 'en' }}},\
'email': { 'display': {{'name': 'Email Id', 'locale': 'en' }}},\
'region': { 'display': {{'name': 'Region', 'locale': 'en' }}},\
'province': { 'display': {{'name': 'Province', 'locale': 'en' }}},\
'UIN': { 'display': {{'name': 'UIN', 'locale': 'en' }}},\
'VID': { 'display': {{'name': 'VID', 'locale': 'en' }}},\
'postalCode': { 'display': {{'name': 'Postal Code', 'locale': 'en' }}}\
}},\
'display': {{'name': 'Mock Verifiable Credential', \
'locale': 'en', \
'logo': {'url': '${mosipbox.public.url}/logo.png','alt_text': 'a square logo of a MOSIP'},\
'background_color': '#12107c',\
'background_image': { 'uri': 'https://${mosipbox.public.url}/inji/mosip-logo.png' }, \
'text_color': '#FFFFFF'}},\
'order' : {'fullName','phone','dateOfBirth','gender','email','region','province','UIN', 'VID', 'postalCode'}\
},\
"DrivingLicenseCredential":{\
'format': 'mso_mdoc',\
'doctype': 'org.iso.18013.5.1.mDL',\
'scope' : 'sample_vc_mdoc',\
'cryptographic_binding_methods_supported': {'cose_key'},\
'credential_signing_alg_values_supported': {'ES256'},\
'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'ES256'}}},\
'claims': {\
'org.iso.18013.5.1': {'given_name': {'display': {{'name': 'Given Name','locale': 'en'}}},'family_name': {'display': {{'name': 'Family Name','locale': 'en'}}},'issue_date': {'display': {{'name': 'Issue Date','locale': 'en'}}},'expiry_date': {'display': {{'name': 'Expiry Date','locale': 'en'}}},'birth_date': {'display': {{'name': 'Birth Date','locale': 'en'}}},'issuing_country': {'display': {{'name': 'Issuing Country','locale': 'en'}}},'document_number': {'display': {{'name': 'Document Number','locale': 'en'}}}}},\
'display': {{'name': 'Mobile Driving License Verifiable Credential', \
'locale': 'en', \
'background_image': { 'uri': 'https://sunbird.org/images/sunbird-logo-new.png' }, \
'logo': {'url': 'https://sunbird.org/images/sunbird-logo-new.png','alt_text': 'a square logo of a Sunbird Mobile Driving License'},\
'background_color': '#FDFAF9',\
'text_color': '#7C4616'}},\
'order' : {'org.iso.18013.5.1~family_name','org.iso.18013.5.1~given_name','org.iso.18013.5.1~document_number','org.iso.18013.5.1~issuing_country','org.iso.18013.5.1~issue_date','org.iso.18013.5.1~expiry_date','org.iso.18013.5.1~birth_date'}\
}\
}\
}\
}
mosip.certify.issuer-metadata.config-url=openid4vci-mock.json
Loading

0 comments on commit 19dd010

Please sign in to comment.