From 3dd48293b2eb59ea5fbcf9eb899932a8babcb936 Mon Sep 17 00:00:00 2001 From: Vijay Kumar S <94220135+vijay151096@users.noreply.github.com> Date: Mon, 1 Jul 2024 18:57:14 +0530 Subject: [PATCH] [DSD-5632]: Inji Config Retagging with Certify Properties Removed. (#31) Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com> --- README.md | 7 - certify-default.properties | 278 ------------------------------ certify-insurance.properties | 226 ------------------------ certify-mock.properties | 226 ------------------------ certify-mosipid.properties | 226 ------------------------ certify-plugin-default.properties | 62 ------- 6 files changed, 1025 deletions(-) delete mode 100644 certify-default.properties delete mode 100644 certify-insurance.properties delete mode 100644 certify-mock.properties delete mode 100644 certify-mosipid.properties delete mode 100644 certify-plugin-default.properties diff --git a/README.md b/README.md index 94221b6..bfa0eba 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,3 @@ This Repository contains configurations for Inji Stack, These are the split up o ### Mimoto - [mimoto-default.properties](mimoto-default.properties) - Default Configuration for Mimoto App is mentioned here - [mimoto-issuers-config.json](mimoto-issuers-config.json) - Configuration of All Supported Credential Issuers is mentioned here - -### Inji Certify -- [certify-default.properties](certify-default.properties) - Default Configuration for Certify is mentioned here -- [certify-plugin-default.properties](certify-plugin-default.properties) - Default Configuration for Plugins is mentioned here -- [certify-mosipid.properties](certify-mosipid.properties)- Default Configuration for Certify MosipId is mentioned here -- [certify-mock.properties](certify-mock.properties) - Default Configuration for Certify Mock is mentioned here -- [certify-insurance.properties](certify-insurance.properties) - Default Configuration for Certify Insurance is mentioned here diff --git a/certify-default.properties b/certify-default.properties deleted file mode 100644 index 8504370..0000000 --- a/certify-default.properties +++ /dev/null @@ -1,278 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. - - -## -------------------------------------- Authentication & Authorization ----------------------------------------------- - -mosip.certify.security.auth.post-urls={} -mosip.certify.security.auth.put-urls={} -mosip.certify.security.auth.get-urls={} - -mosip.certify.security.ignore-csrf-urls=${server.servlet.path}/actuator/**,${server.servlet.path}/error,\ - ${server.servlet.path}/swagger-ui/**,${server.servlet.path}/v3/api-docs/**,\ - ${server.servlet.path}/issuance/**,**/system-info/** - -mosip.certify.security.ignore-auth-urls=/actuator/**,**/error,**/swagger-ui/**,\ - **/v3/api-docs/**,**/issuance/**,**/system-info/** - -## ------------------------------------------ Discovery openid-configuration ------------------------------------------- - -mosip.certify.authorization.url=https://${mosip.esignet.host} -mosip.certify.domain.url=https://${mosip.injicertify.host} - -mosip.certify.discovery.issuer-id=${mosipbox.public.url}${server.servlet.path} - -##----- These are reference to the oauth resource server providing jwk----------------------------------## -mosip.certify.identifier=${mosip.certify.domain.url} -mosip.certify.authn.filter-urls={ '${server.servlet.path}/issuance/credential', '${server.servlet.path}/issuance/vd11/credential', '${server.servlet.path}/issuance/vd12/credential' } - -mosip.certify.cnonce-expire-seconds=40 - -# Change this if certify is used with different OAUTH2.0 server -mosip.certify.authn.issuer-uri=${mosip.certify.authorization.url}/v1/esignet -mosip.certify.authn.jwk-set-uri=${mosip.certify.authorization.url}/v1/esignet/oauth/.well-known/jwks.json - -mosip.certify.authn.allowed-audiences={ '${mosip.certify.domain.url}${server.servlet.path}/issuance/credential', '${mosip.certify.authorization.url}/v1/esignet/vci/credential' } - -mosip.certify.supported.jwt-proof-alg={'RS256','PS256'} -mosip.certify.key-values={\ - 'vd11' : { \ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'credential_endpoint': '${mosip.certify.domain.url}${server.servlet.path}/issuance/vd11/credential', \ - 'credentials_supported': {\ - {\ - 'format': 'ldp_vc',\ - 'id': 'MOSIPVerifiableCredential', \ - 'scope' : 'mosip_identity_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'RsaSignature2018'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','MOSIPVerifiableCredential'},\ - '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' }}},\ - 'residenceStatus': { 'display': {{'name': 'Residence Status', 'locale': 'en' }}},\ - 'email': { 'display': {{'name': 'Email Id', 'locale': 'en' }}},\ - 'region': { 'display': {{'name': 'Region', 'locale': 'en' }}},\ - 'province': { 'display': {{'name': 'Province', 'locale': 'en' }}},\ - 'city': { 'display': {{'name': 'City', 'locale': 'en' }}},\ - 'UIN': { 'display': {{'name': 'UIN', 'locale': 'en' }}},\ - 'VID': { 'display': {{'name': 'VID', 'locale': 'en' }}},\ - 'postalCode': { 'display': {{'name': 'Postal Code', 'locale': 'en' }}}\ - }\ - },\ - 'display': {{'name': 'MOSIP National ID', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/mosip-logo.png','alt_text': 'a square logo of a MOSIP'},\ - 'background_color': '#f8efea',\ - 'text_color': '#000000'}}\ - }\ - }\ - },\ - 'vd12' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/vd12/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'latest' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosip.certify.domain.url}${server.servlet.path}/issuance/credential', \ - 'display': {{'name': 'MOSIP National ID', 'locale': 'en'}},\ - 'credential_configurations_supported' : { \ - "MOSIPVerifiableCredential_ldp" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'mosip_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'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','MOSIPVerifiableCredential'},\ - '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' }}},\ - 'residenceStatus': { 'display': {{'name': 'Residence Status', 'locale': 'en' }}},\ - 'email': { 'display': {{'name': 'Email Id', 'locale': 'en' }}},\ - 'region': { 'display': {{'name': 'Region', 'locale': 'en' }}},\ - 'province': { 'display': {{'name': 'Province', 'locale': 'en' }}},\ - 'city': { 'display': {{'name': 'City', 'locale': 'en' }}},\ - 'UIN': { 'display': {{'name': 'UIN', 'locale': 'en' }}},\ - 'VID': { 'display': {{'name': 'VID', 'locale': 'en' }}},\ - 'postalCode': { 'display': {{'name': 'Postal Code', 'locale': 'en' }}}\ - }},\ - 'display': {{'name': 'MOSIP National ID', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/mosip-logo.png','alt_text': 'a square logo of a MOSIP'},\ - 'background_color': '#f8efea',\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/mosip-logo.png' }, \ - 'text_color': '#000000'}},\ - 'order' : {'fullName','phone','gender','residenceStatus','email','region','province','city','UIN','postalCode'}\ - }\ - }\ - }\ -} - -#------------------------------------ Key-manager specific properties -------------------------------------------------- -#Crypto asymmetric algorithm name -mosip.kernel.crypto.asymmetric-algorithm-name=RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING -#Crypto symmetric algorithm name -mosip.kernel.crypto.symmetric-algorithm-name=AES/GCM/PKCS5Padding -#Keygenerator asymmetric algorithm name -mosip.kernel.keygenerator.asymmetric-algorithm-name=RSA -#Keygenerator symmetric algorithm name -mosip.kernel.keygenerator.symmetric-algorithm-name=AES -#Asymmetric algorithm key length -mosip.kernel.keygenerator.asymmetric-key-length=2048 -#Symmetric algorithm key length -mosip.kernel.keygenerator.symmetric-key-length=256 -#Encrypted data and encrypted symmetric key separator -mosip.kernel.data-key-splitter=#KEY_SPLITTER# -#GCM tag length -mosip.kernel.crypto.gcm-tag-length=128 -#Hash algo name -mosip.kernel.crypto.hash-algorithm-name=PBKDF2WithHmacSHA512 -#Symmtric key length used in hash -mosip.kernel.crypto.hash-symmetric-key-length=256 -#No of iterations in hash -mosip.kernel.crypto.hash-iteration=100000 -#Sign algo name -mosip.kernel.crypto.sign-algorithm-name=RS256 -#Certificate Sign algo name -mosip.kernel.certificate.sign.algorithm=SHA256withRSA - -mosip.certify.cache.security.secretkey.reference-id=TRANSACTION_CACHE - -#mosip.kernel.keymanager.hsm.config-path=local.p12 -#mosip.kernel.keymanager.hsm.keystore-type=PKCS12 -#mosip.kernel.keymanager.hsm.keystore-pass=${softhsm.idp.pin} - -#Type of keystore, Supported Types: PKCS11, PKCS12, Offline, JCE -mosip.kernel.keymanager.hsm.keystore-type=PKCS11 -# For PKCS11 provide Path of config file. -# For PKCS12 keystore type provide the p12/pfx file path. P12 file will be created internally so provide only file path & file name. -# For Offline & JCE property can be left blank, specified value will be ignored. -mosip.kernel.keymanager.hsm.config-path=/config/softhsm-application.conf -# Passkey of keystore for PKCS11, PKCS12 -# For Offline & JCE proer can be left blank. JCE password use other JCE specific properties. -mosip.kernel.keymanager.hsm.keystore-pass=${softhsm.certify.security.pin} - - -mosip.kernel.keymanager.certificate.default.common-name=www.example.com -mosip.kernel.keymanager.certificate.default.organizational-unit=EXAMPLE-CENTER -mosip.kernel.keymanager.certificate.default.organization=IIITB -mosip.kernel.keymanager.certificate.default.location=BANGALORE -mosip.kernel.keymanager.certificate.default.state=KA -mosip.kernel.keymanager.certificate.default.country=IN - -mosip.kernel.keymanager.softhsm.certificate.common-name=www.example.com -mosip.kernel.keymanager.softhsm.certificate.organizational-unit=Example Unit -mosip.kernel.keymanager.softhsm.certificate.organization=IIITB -mosip.kernel.keymanager.softhsm.certificate.country=IN - -# Application Id for PMS master key. -mosip.kernel.partner.sign.masterkey.application.id=PMS -mosip.kernel.partner.allowed.domains=DEVICE - -mosip.kernel.keymanager-service-validate-url=https://${mosip.hostname}/keymanager/validate -mosip.kernel.keymanager.jwtsign.validate.json=false -mosip.keymanager.dao.enabled=false -crypto.PrependThumbprint.enable=true - -mosip.kernel.keymgr.hsm.health.check.enabled=true -mosip.kernel.keymgr.hsm.health.key.app-id=CERTIFY_SERVICE -mosip.kernel.keymgr.hsm.healthkey.ref-id=TRANSACTION_CACHE -mosip.kernel.keymgr.hsm.health.check.encrypt=true - -##----------------------------------------- Database properties -------------------------------------------------------- - -mosip.certify.database.hostname=postgres-postgresql.postgres -mosip.certify.database.port=5432 -spring.datasource.url=jdbc:postgresql://${mosip.certify.database.hostname}:${mosip.certify.database.port}/mosip_certify?currentSchema=certify -spring.datasource.username=certifyuser -spring.datasource.password=${db.dbuser.password} - -spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect -spring.jpa.show-sql=false -spring.jpa.hibernate.ddl-auto=none -spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true - -## ---------------------------------------- Cache configuration -------------------------------------------------------- -spring.cache.type=redis -spring.cache.cache-names=${mosip.certify.cache.names} -spring.data.redis.host=redis-master-0.redis-headless.redis.svc.cluster.local -spring.data.redis.port=6379 -management.health.redis.enabled=false -spring.data.redis.password=${redis.password} - -mosip.certify.access-token-expire-seconds=86400 - -mosip.certify.cache.names=userinfo -# Cache size setup is applicable only for 'simple' cache type. -# Cache size configuration will not be considered with 'Redis' cache type -mosip.certify.cache.size={'userinfo': 200 } - - -# Cache expire in seconds is applicable for both 'simple' and 'Redis' cache type -mosip.certify.cache.expire-in-seconds={'userinfo': ${mosip.certify.access-token-expire-seconds}} diff --git a/certify-insurance.properties b/certify-insurance.properties deleted file mode 100644 index 39deb40..0000000 --- a/certify-insurance.properties +++ /dev/null @@ -1,226 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. - - -## -------------------------------------- Authentication & Authorization ----------------------------------------------- - -mosip.certify.security.auth.post-urls={} -mosip.certify.security.auth.put-urls={} -mosip.certify.security.auth.get-urls={} - -mosip.certify.security.ignore-csrf-urls=${server.servlet.path}/actuator/**,${server.servlet.path}/error,\ - ${server.servlet.path}/swagger-ui/**,${server.servlet.path}/v3/api-docs/**,\ - ${server.servlet.path}/issuance/** - -mosip.certify.security.ignore-auth-urls=/actuator/**,**/error,**/swagger-ui/**,\ - **/v3/api-docs/**, **/issuance/** - -## ------------------------------------------ Discovery openid-configuration ------------------------------------------- - -mosip.certify.authorization.url=https://${mosip.esignet.insurance.host} -mosip.certify.domain.url=https://${mosip.injicertify.insurance.host} - -mosip.certify.discovery.issuer-id=${mosipbox.public.url}${server.servlet.path} - -##----- These are reference to the oauth resource server providing jwk----------------------------------## -mosip.certify.identifier=${mosip.certify.domain.url} -mosip.certify.authn.filter-urls={ '${server.servlet.path}/issuance/credential', '${server.servlet.path}/issuance/vd11/credential', '${server.servlet.path}/issuance/vd12/credential' } - -mosip.certify.cnonce-expire-seconds=40 - -# Change this if certify is used with different OAUTH2.0 server -mosip.certify.authn.issuer-uri=${mosip.certify.authorization.url}/v1/esignet -mosip.certify.authn.jwk-set-uri=${mosip.certify.authorization.url}/v1/esignet/oauth/.well-known/jwks.json - -mosip.certify.authn.allowed-audiences={ '${mosip.certify.domain.url}${server.servlet.path}/issuance/credential', '${mosip.certify.authorization.url}/v1/esignet/vci/credential' } - -mosip.certify.supported.jwt-proof-alg={'RS256','PS256'} -mosip.certify.key-values={\ - 'vd11' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_server': '${mosip.certify.authorization.url}', \ - 'credential_endpoint': '${mosip.certify.domain.url}${server.servlet.path}/issuance/vd11/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported': {{\ - 'format': 'ldp_vc',\ - 'id': 'InsuranceCredential', \ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png', 'alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - {\ - 'format': 'ldp_vc',\ - 'id': 'LifeInsuranceCredential', \ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'vd12' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/vd12/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'latest' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credential_configurations_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'credential_signing_alg_values_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'PS256'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/veridonia-logo.png' }, \ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'credential_signing_alg_values_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'ES256'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/veridonia-logo.png' }, \ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - }\ -} diff --git a/certify-mock.properties b/certify-mock.properties deleted file mode 100644 index e690d3f..0000000 --- a/certify-mock.properties +++ /dev/null @@ -1,226 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. - - -## -------------------------------------- Authentication & Authorization ----------------------------------------------- - -mosip.certify.security.auth.post-urls={} -mosip.certify.security.auth.put-urls={} -mosip.certify.security.auth.get-urls={} - -mosip.certify.security.ignore-csrf-urls=${server.servlet.path}/actuator/**,${server.servlet.path}/error,\ - ${server.servlet.path}/swagger-ui/**,${server.servlet.path}/v3/api-docs/**,\ - ${server.servlet.path}/issuance/** - -mosip.certify.security.ignore-auth-urls=/actuator/**,**/error,**/swagger-ui/**,\ - **/v3/api-docs/**, **/issuance/** - -## ------------------------------------------ Discovery openid-configuration ------------------------------------------- - -mosip.certify.authorization.url=https://${mosip.esignet.insurance.host} -mosip.certify.domain.url=https://${mosip.injicertify.mock.host} - -mosip.certify.discovery.issuer-id=${mosipbox.public.url}${server.servlet.path} - -##----- These are reference to the oauth resource server providing jwk----------------------------------## -mosip.certify.identifier=${mosip.certify.domain.url} -mosip.certify.authn.filter-urls={ '${server.servlet.path}/issuance/credential', '${server.servlet.path}/issuance/vd11/credential', '${server.servlet.path}/issuance/vd12/credential' } - -mosip.certify.cnonce-expire-seconds=40 - -# Change this if certify is used with different OAUTH2.0 server -mosip.certify.authn.issuer-uri=${mosip.certify.authorization.url}/v1/esignet -mosip.certify.authn.jwk-set-uri=${mosip.certify.authorization.url}/v1/esignet/oauth/.well-known/jwks.json - -mosip.certify.authn.allowed-audiences={ '${mosip.certify.domain.url}${server.servlet.path}/issuance/credential', '${mosip.certify.authorization.url}/v1/esignet/vci/credential' } - -mosip.certify.supported.jwt-proof-alg={'RS256','PS256'} -mosip.certify.key-values={\ - 'vd11' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_server': '${mosip.certify.authorization.url}', \ - 'credential_endpoint': '${mosip.certify.domain.url}${server.servlet.path}/issuance/vd11/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported': {{\ - 'format': 'ldp_vc',\ - 'id': 'InsuranceCredential', \ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png', 'alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - {\ - 'format': 'ldp_vc',\ - 'id': 'LifeInsuranceCredential', \ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'vd12' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/vd12/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'latest' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credential_configurations_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'credential_signing_alg_values_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'PS256'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/veridonia-logo.png' }, \ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'credential_signing_alg_values_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'ES256'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/veridonia-logo.png' }, \ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - }\ -} diff --git a/certify-mosipid.properties b/certify-mosipid.properties deleted file mode 100644 index 801af6e..0000000 --- a/certify-mosipid.properties +++ /dev/null @@ -1,226 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. - - -## -------------------------------------- Authentication & Authorization ----------------------------------------------- - -mosip.certify.security.auth.post-urls={} -mosip.certify.security.auth.put-urls={} -mosip.certify.security.auth.get-urls={} - -mosip.certify.security.ignore-csrf-urls=${server.servlet.path}/actuator/**,${server.servlet.path}/error,\ - ${server.servlet.path}/swagger-ui/**,${server.servlet.path}/v3/api-docs/**,\ - ${server.servlet.path}/issuance/** - -mosip.certify.security.ignore-auth-urls=/actuator/**,**/error,**/swagger-ui/**,\ - **/v3/api-docs/**, **/issuance/** - -## ------------------------------------------ Discovery openid-configuration ------------------------------------------- - -mosip.certify.authorization.url=https://${mosip.esignet.insurance.host} -mosip.certify.domain.url=https://${mosip.injicertify.mosipid.host} - -mosip.certify.discovery.issuer-id=${mosipbox.public.url}${server.servlet.path} - -##----- These are reference to the oauth resource server providing jwk----------------------------------## -mosip.certify.identifier=${mosip.certify.domain.url} -mosip.certify.authn.filter-urls={ '${server.servlet.path}/issuance/credential', '${server.servlet.path}/issuance/vd11/credential', '${server.servlet.path}/issuance/vd12/credential' } - -mosip.certify.cnonce-expire-seconds=40 - -# Change this if certify is used with different OAUTH2.0 server -mosip.certify.authn.issuer-uri=${mosip.certify.authorization.url}/v1/esignet -mosip.certify.authn.jwk-set-uri=${mosip.certify.authorization.url}/v1/esignet/oauth/.well-known/jwks.json - -mosip.certify.authn.allowed-audiences={ '${mosip.certify.domain.url}${server.servlet.path}/issuance/credential', '${mosip.certify.authorization.url}/v1/esignet/vci/credential' } - -mosip.certify.supported.jwt-proof-alg={'RS256','PS256'} -mosip.certify.key-values={\ - 'vd11' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_server': '${mosip.certify.authorization.url}', \ - 'credential_endpoint': '${mosip.certify.domain.url}${server.servlet.path}/issuance/vd11/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported': {{\ - 'format': 'ldp_vc',\ - 'id': 'InsuranceCredential', \ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png', 'alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - {\ - 'format': 'ldp_vc',\ - 'id': 'LifeInsuranceCredential', \ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'vd12' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/vd12/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credentials_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'cryptographic_suites_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt'},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - },\ - 'latest' : {\ - 'credential_issuer': '${mosip.certify.identifier}', \ - 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ - 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/credential', \ - 'display': {{'name': 'Insurance', 'locale': 'en'}},\ - 'credential_configurations_supported' : { \ - "InsuranceCredential" : {\ - 'format': 'ldp_vc',\ - 'scope' : 'sunbird_rc_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'credential_signing_alg_values_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'PS256'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential','InsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Health Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_color': '#FDFAF9',\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/veridonia-logo.png' }, \ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - },\ - "LifeInsuranceCredential":{\ - 'format': 'ldp_vc',\ - 'scope' : 'life_insurance_vc_ldp',\ - 'cryptographic_binding_methods_supported': {'did:jwk'},\ - 'credential_signing_alg_values_supported': {'Ed25519Signature2020'},\ - 'proof_types_supported': {'jwt': {'proof_signing_alg_values_supported': {'RS256', 'ES256'}}},\ - 'credential_definition': {\ - 'type': {'VerifiableCredential', 'LifeInsuranceCredential'},\ - 'credentialSubject': {\ - 'fullName': {'display': {{'name': 'Name','locale': 'en'}}}, \ - 'mobile': {'display': {{'name': 'Phone Number','locale': 'en'}}},\ - 'dob': {'display': {{'name': 'Date of Birth','locale': 'en'}}},\ - 'gender': {'display': {{'name': 'Gender','locale': 'en'}}},\ - 'benefits': {'display': {{'name': 'Benefits','locale': 'en'}}},\ - 'email': {'display': {{'name': 'Email Id','locale': 'en'}}},\ - 'policyIssuedOn': {'display': {{'name': 'Policy Issued On','locale': 'en'}}},\ - 'policyExpiresOn': {'display': {{'name': 'Policy Expires On','locale': 'en'}}},\ - 'policyName': {'display': {{'name': 'Policy Name','locale': 'en'}}},\ - 'policyNumber': {'display': {{'name': 'Policy Number','locale': 'en'}}}\ - }},\ - 'display': {{'name': 'Life Insurance', \ - 'locale': 'en', \ - 'logo': {'url': 'https://${mosip.api.public.host}/inji/veridonia-logo.png','alt_text': 'a square logo of a Veridonia'},\ - 'background_image': { 'uri': 'https://${mosip.api.public.host}/inji/veridonia-logo.png' }, \ - 'background_color': '#FDFAF9',\ - 'text_color': '#7C4616'}},\ - 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ - }}\ - }\ -} diff --git a/certify-plugin-default.properties b/certify-plugin-default.properties deleted file mode 100644 index c81cb30..0000000 --- a/certify-plugin-default.properties +++ /dev/null @@ -1,62 +0,0 @@ -## ------------------------------------------- Integrations ------------------------------------------------------------ -#mosip.certify.integration.scan-base-package=io.mosip.certify.sunbirdrc.integration -#mosip.certify.integration.vci-plugin=SunbirdRCVCIssuancePlugin -#mosip.certify.integration.audit-plugin=LoggerAuditService - -##---------------------------------Sunbird-RC Plugin Configurations------------------------------------------------------ - -mosip.certify.vciplugin.sunbird-rc.enable-psut-based-registry-search=false -mosip.certify.vciplugin.sunbird-rc.issue-credential-url=http://10.3.148.107/credential/credentials/issue -mosip.certify.vciplugin.sunbird-rc.supported-credential-types=LifeInsuranceCredential,InsuranceCredential,VehicleInsuranceCredential - -##---------------------------------Life Insurance Credential Configurations------------------------------------------------------ - -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.static-value-map.issuerId=did:web:holashchand.github.io:test_project:32b08ca7-9979-4f42-aacc-1d73f3ac5322 -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.template-url=${spring_config_url_env}/*/${active_profile_env}/${spring_config_label_env}/life-insurance-credential.json -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.registry-get-url=http://10.3.148.107/registry/api/v1/Insurance/ -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.cred-schema-id=did:schema:9ae73412-5783-4194-acec-6d004006660c -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.cred-schema-version=1.0.0 -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.registry-search-url=http://10.3.148.107/registry/api/v1/Insurance/search - -##---------------------------------Vehicle Insurance Credential Configurations------------------------------------------------------ - -mosip.certify.vciplugin.sunbird-rc.credential-type.VehicleInsuranceCredential.static-value-map.issuerId=did:web:holashchand.github.io:test_project:32b08ca7-9979-4f42-aacc-1d73f3ac5322 -mosip.certify.vciplugin.sunbird-rc.credential-type.VehicleInsuranceCredential.template-url=${spring_config_url_env}/*/${active_profile_env}/${spring_config_label_env}/vehicle-insurance-credential.json -mosip.certify.vciplugin.sunbird-rc.credential-type.VehicleInsuranceCredential.registry-get-url=http://10.3.148.107/registry/api/v1/Insurance/ -mosip.certify.vciplugin.sunbird-rc.credential-type.VehicleInsuranceCredential.cred-schema-id=did:schema:e95a24f5-d65e-4b65-b497-e0671f8bd12d -mosip.certify.vciplugin.sunbird-rc.credential-type.VehicleInsuranceCredential.cred-schema-version=1.0.0 -mosip.certify.vciplugin.sunbird-rc.credential-type.VehicleInsuranceCredential.registry-search-url=http://10.3.148.107/registry/api/v1/Insurance/search - -##---------------------------------Insurance Credential Configurations------------------------------------------------------ - -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.static-value-map.issuerId=did:web:holashchand.github.io:test_project:32b08ca7-9979-4f42-aacc-1d73f3ac5322 -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.template-url=${spring_config_url_env}/*/${active_profile_env}/${spring_config_label_env}/insurance-credential.json -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.registry-get-url=http://10.3.148.107/registry/api/v1/Insurance/ -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.cred-schema-id=did:schema:0d10a2cf-94de-4ffc-b32c-4f1a61ee05ba -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.cred-schema-version=1.0.0 -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.registry-search-url=http://10.3.148.107/registry/api/v1/Insurance/search - - -## ------------------------------------------- MOSIP ID Integration properties ------------------------------------------------------------ -mosip.certify.integration.scan-base-package=io.mosip.certify.mosipid.integration -mosip.certify.integration.audit-plugin=IdaAuditPluginImpl -mosip.certify.integration.vci-plugin=IdaVCIssuancePluginImpl - -mosip.certify.misp.license.key=${mosip.certify.misp.key} - -mosip.certify.ida.vci-user-info-cache=userinfo -mosip.certify.ida.vci-exchange-id=mosip.identity.vciexchange -mosip.certify.ida.vci-exchange-version=1.0 -mosip.certify.ida.vci-exchange-url=https://${mosip.api.internal.host}/idauthentication/v1/vci-exchange/delegated/${mosip.certify.misp.license.key}/ - -mosip.certify.authenticator.ida.auth-token-url=https://${mosip.api.internal.host}/v1/authmanager/authenticate/clientidsecretkey -mosip.certify.authenticator.ida.audit-manager-url=https://${mosip.api.internal.host}/v1/auditmanager/audits -mosip.certify.authenticator.ida.client-id=mosip-ida-client -mosip.certify.authenticator.ida.secret-key=${mosip.ida.client.secret} -mosip.certify.authenticator.ida.app-id=ida - -## ---------------------------------------- Cache configuration -------------------------------------------------------- - -mosip.certify.cache.secure.individual-id=false -mosip.certify.cache.store.individual-id=true -mosip.certify.cache.security.algorithm-name=AES/ECB/PKCS5Padding