diff --git a/certify-service/src/main/resources/bootstrap.properties b/certify-service/src/main/resources/bootstrap.properties index db9a555f..f295322c 100644 --- a/certify-service/src/main/resources/bootstrap.properties +++ b/certify-service/src/main/resources/bootstrap.properties @@ -3,7 +3,7 @@ # file, You can obtain one at https://mozilla.org/MPL/2.0/. ## Application Name -spring.application.name=certify +spring.application.name=certify,certify-plugin spring.cloud.config.uri=http://localhost:8888 spring.profiles.active=local diff --git a/docker-compose/docker-compose-certify/config/certify-default.properties b/docker-compose/docker-compose-certify/config/certify-default.properties index c166ca14..2a2bbf50 100644 --- a/docker-compose/docker-compose-certify/config/certify-default.properties +++ b/docker-compose/docker-compose-certify/config/certify-default.properties @@ -61,6 +61,7 @@ mosip.certify.authn.allowed-audiences={ '${mosipbox.public.url}${server.servlet. mosip.certify.key-values={\ 'v11' : {\ 'credential_issuer': '${mosipbox.public.url}', \ + 'authorization_server': 'http://esignet:8088', \ 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/credential', \ 'display': {{'name': 'Insurance', 'locale': 'en'}},\ 'credentials_supported': {{\ @@ -122,6 +123,7 @@ mosip.certify.key-values={\ },\ 'latest' : {\ 'credential_issuer': '${mosipbox.public.url}', \ + 'authorization_servers': {'http://esignet:8088'}, \ 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/credential', \ 'display': {{'name': 'Insurance', 'locale': 'en'}},\ 'credentials_supported' : { \ @@ -180,35 +182,4 @@ mosip.certify.key-values={\ 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ }}\ }\ -} - -## ------------------------------------------- Integrations ------------------------------------------------------------ -mosip.certify.integration.scan-base-package=io.mosip.certify.sunbirdrc.integration -mosip.certify.integration.vci-plugin=SunbirdRCVCIssuancePlugin -mosip.certify.integration.audit-plugin=LoggerAuditService - -##-----------------------------VCI related demo configuration---------------------------------------------## - -mosip.certify.vciplugin.sunbird-rc.issue-credential-url=http://nginx:80/credential/credentials/issue -mosip.certify.vciplugin.sunbird-rc.supported-credential-types=HealthInsuranceCredential,LifeInsuranceCredential,InsuranceCredential -mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.static-value-map.issuerId=did:web:challabeehyv.github.io:DID-Resolve:eb74e0d9-e940-41b7-91ce-abc47bd65fad -mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.template-url=https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/InsuranceConfig.json -mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.registry-get-url=http://nginx:80/registry/api/v1/Insurance/ -mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.cred-schema-id=did:schema:6f0d5bd7-3e77-4b18-9984-14a7a64f0596 -mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.cred-schema-version=1.0.0 -mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.registry-search-url=http://nginx:80/registry/api/v1/Insurance/search - -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.static-value-map.issuerId=did:web:challabeehyv.github.io:DID-Resolve:eb74e0d9-e940-41b7-91ce-abc47bd65fad -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.template-url=https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/InsuranceConfig.json -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.registry-get-url=http://nginx:80/registry/api/v1/Insurance/ -mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.cred-schema-id=did:schema:6f0d5bd7-3e77-4b18-9984-14a7a64f0596 -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://nginx:80/registry/api/v1/Insurance/search - - -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.static-value-map.issuerId=did:web:challabeehyv.github.io:DID-Resolve:eb74e0d9-e940-41b7-91ce-abc47bd65fad -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.template-url=https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/InsuranceConfig.json -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.registry-get-url=http://nginx:80/registry/api/v1/Insurance/ -mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.cred-schema-id=did:schema:6f0d5bd7-3e77-4b18-9984-14a7a64f0596 -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://nginx:80/registry/api/v1/Insurance/search \ No newline at end of file +} \ No newline at end of file diff --git a/docker-compose/docker-compose-certify/config/certify-plugin-default.properties b/docker-compose/docker-compose-certify/config/certify-plugin-default.properties new file mode 100644 index 00000000..3b738ef8 --- /dev/null +++ b/docker-compose/docker-compose-certify/config/certify-plugin-default.properties @@ -0,0 +1,30 @@ +## ------------------------------------------- Integrations ------------------------------------------------------------ +mosip.certify.integration.scan-base-package=io.mosip.certify.sunbirdrc.integration +mosip.certify.integration.vci-plugin=SunbirdRCVCIssuancePlugin +mosip.certify.integration.audit-plugin=LoggerAuditService + +##-----------------------------VCI related demo configuration---------------------------------------------## + +mosip.certify.vciplugin.sunbird-rc.issue-credential-url=http://nginx:80/credential/credentials/issue +mosip.certify.vciplugin.sunbird-rc.supported-credential-types=HealthInsuranceCredential,LifeInsuranceCredential,InsuranceCredential +mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.static-value-map.issuerId=did:web:challabeehyv.github.io:DID-Resolve:eb74e0d9-e940-41b7-91ce-abc47bd65fad +mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.template-url=https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/InsuranceConfig.json +mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.registry-get-url=http://nginx:80/registry/api/v1/Insurance/ +mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.cred-schema-id=did:schema:6f0d5bd7-3e77-4b18-9984-14a7a64f0596 +mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.cred-schema-version=1.0.0 +mosip.certify.vciplugin.sunbird-rc.credential-type.HealthInsuranceCredential.registry-search-url=http://nginx:80/registry/api/v1/Insurance/search + +mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.static-value-map.issuerId=did:web:challabeehyv.github.io:DID-Resolve:eb74e0d9-e940-41b7-91ce-abc47bd65fad +mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.template-url=https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/InsuranceConfig.json +mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.registry-get-url=http://nginx:80/registry/api/v1/Insurance/ +mosip.certify.vciplugin.sunbird-rc.credential-type.LifeInsuranceCredential.cred-schema-id=did:schema:6f0d5bd7-3e77-4b18-9984-14a7a64f0596 +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://nginx:80/registry/api/v1/Insurance/search + + +mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.static-value-map.issuerId=did:web:challabeehyv.github.io:DID-Resolve:eb74e0d9-e940-41b7-91ce-abc47bd65fad +mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.template-url=https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/InsuranceConfig.json +mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.registry-get-url=http://nginx:80/registry/api/v1/Insurance/ +mosip.certify.vciplugin.sunbird-rc.credential-type.InsuranceCredential.cred-schema-id=did:schema:6f0d5bd7-3e77-4b18-9984-14a7a64f0596 +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://nginx:80/registry/api/v1/Insurance/search \ No newline at end of file diff --git a/docker-compose/docker-compose-certify/docker-compose.yml b/docker-compose/docker-compose-certify/docker-compose.yml index 4a2daa81..9c41c31b 100644 --- a/docker-compose/docker-compose-certify/docker-compose.yml +++ b/docker-compose/docker-compose-certify/docker-compose.yml @@ -69,10 +69,11 @@ services: - artifactory_url_env=http://artifactory-server:8080/ - container_user=mosip - active_profile_env=default - - SPRING_CONFIG_NAME=certify - - SPRING_CONFIG_LOCATION=/home/mosip/certify-default.properties + - SPRING_CONFIG_NAME=certify,certify-plugin + - SPRING_CONFIG_LOCATION=/home/mosip/certify-default.properties,/home/mosip/certify-plugin-default.properties volumes: - ./config/certify-default.properties:/home/mosip/certify-default.properties + - ./config/certify-plugin-default.properties:/home/mosip/certify-plugin-default.properties - ./loader_path/certify/:/home/mosip/additional_jars/ depends_on: - esignet