From 8c21f13c2d9ec0e80436b7393d00f70e86244c8e Mon Sep 17 00:00:00 2001 From: Challarao Date: Wed, 5 Jun 2024 23:42:30 +0530 Subject: [PATCH] [INJICERT-212] change certify default properties Signed-off-by: Challarao --- .../config/certify-default.properties | 19 +++++++++++-------- ...h sunbird RC flow.postman_collection.json} | 9 +++------ ...ith sunbird flow.postman_environment.json} | 10 +++++----- 3 files changed, 19 insertions(+), 19 deletions(-) rename docker-compose/docker-compose-certify/postman-collections/{certify with Sunbird RC.postman_collection.json => certify with sunbird RC flow.postman_collection.json} (98%) rename docker-compose/docker-compose-certify/postman-collections/{certify-sunbird-flow.postman_environment.json => certify with sunbird flow.postman_environment.json} (99%) diff --git a/docker-compose/docker-compose-certify/config/certify-default.properties b/docker-compose/docker-compose-certify/config/certify-default.properties index c6645ad4..29e0eda9 100644 --- a/docker-compose/docker-compose-certify/config/certify-default.properties +++ b/docker-compose/docker-compose-certify/config/certify-default.properties @@ -45,23 +45,24 @@ mosip.certify.security.ignore-auth-urls=**/actuator/**,**/error,**/swagger-ui/** ## ------------------------------------------ Discovery openid-configuration ------------------------------------------- mosip.certify.discovery.issuer-id=${mosipbox.public.url}${server.servlet.path} +mosip.certify.authorization.url=http://localhost:8088 ##--------------change this later--------------------------------- mosip.certify.supported.jwt-proof-alg={'RS256','PS256'} -## ---------------------------------------------- VCI ------------------------------------------------------------------ ##----- These are reference to the oauth resource server providing jwk----------------------------------## -mosip.certify.identifier=http://localhost:8088 -mosip.certify.authn.filter-urls={ '${server.servlet.path}/issuance/credential' } -mosip.certify.authn.issuer-uri=http://localhost:8088/v1/esignet +mosip.certify.cnonce-expire-seconds=40 +mosip.certify.identifier=${mosipbox.public.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.authn.issuer-uri=${mosip.certify.authorization.url}/v1/esignet mosip.certify.authn.jwk-set-uri=http://esignet:8088/v1/esignet/oauth/.well-known/jwks.json -mosip.certify.authn.allowed-audiences={ '${mosipbox.public.url}${server.servlet.path}/issuance/credential', 'http://localhost:8088/v1/esignet/vci/credential' } +mosip.certify.authn.allowed-audiences={ '${mosipbox.public.url}${server.servlet.path}/issuance/credential', '${mosip.certify.authorization.url}/v1/esignet/vci/credential' } mosip.certify.key-values={\ 'v11' : {\ 'credential_issuer': '${mosipbox.public.url}', \ - 'authorization_server': 'http://esignet:8088/', \ + 'authorization_server': '${mosip.certify.authorization.url}', \ 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/vd11/credential', \ 'display': {{'name': 'Insurance', 'locale': 'en'}},\ 'credentials_supported': {{\ @@ -123,7 +124,7 @@ mosip.certify.key-values={\ },\ 'v12' : {\ 'credential_issuer': '${mosipbox.public.url}', \ - 'authorization_servers': {'http://esignet:8088/'}, \ + 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/vd12/credential', \ 'display': {{'name': 'Insurance', 'locale': 'en'}},\ 'credentials_supported' : { \ @@ -184,7 +185,7 @@ mosip.certify.key-values={\ 'latest' : {\ 'credential_issuer': '${mosipbox.public.url}', \ 'background_image': { 'uri': 'https://sunbird.org/images/sunbird-logo-new.png' }, \ - 'authorization_servers': {'http://esignet:8088/'}, \ + 'authorization_servers': {'${mosip.certify.authorization.url}'}, \ 'credential_endpoint': '${mosipbox.public.url}${server.servlet.path}/issuance/credential', \ 'display': {{'name': 'Insurance', 'locale': 'en'}},\ 'credential_configurations_supported' : { \ @@ -212,6 +213,7 @@ mosip.certify.key-values={\ 'locale': 'en', \ 'logo': {'url': 'https://sunbird.org/images/sunbird-logo-new.png','alt_text': 'a square logo of a Sunbird'},\ 'background_color': '#FDFAF9',\ + 'background_image': { 'uri': 'https://sunbird.org/images/sunbird-logo-new.png' }, \ 'text_color': '#7C4616'}},\ 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ },\ @@ -239,6 +241,7 @@ mosip.certify.key-values={\ 'locale': 'en', \ 'logo': {'url': 'https://sunbird.org/images/sunbird-logo-new.png','alt_text': 'a square logo of a Sunbird'},\ 'background_color': '#FDFAF9',\ + 'background_image': { 'uri': 'https://sunbird.org/images/sunbird-logo-new.png' }, \ 'text_color': '#7C4616'}},\ 'order' : {'fullName','policyName','policyExpiresOn','policyIssuedOn','policyNumber','mobile','dob','gender','benefits','email'}\ }}\ diff --git a/docker-compose/docker-compose-certify/postman-collections/certify with Sunbird RC.postman_collection.json b/docker-compose/docker-compose-certify/postman-collections/certify with sunbird RC flow.postman_collection.json similarity index 98% rename from docker-compose/docker-compose-certify/postman-collections/certify with Sunbird RC.postman_collection.json rename to docker-compose/docker-compose-certify/postman-collections/certify with sunbird RC flow.postman_collection.json index 1c58b6d1..3738c0f6 100644 --- a/docker-compose/docker-compose-certify/postman-collections/certify with Sunbird RC.postman_collection.json +++ b/docker-compose/docker-compose-certify/postman-collections/certify with sunbird RC flow.postman_collection.json @@ -1,10 +1,9 @@ { "info": { - "_postman_id": "568cc3d3-7c01-479a-817b-4851c8bfbc17", + "_postman_id": "71d7ab55-0817-40ad-97c7-c95f939a3e3e", "name": "eSignet with Sunbird RC", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "24329429", - "_collection_link": "https://interstellar-desert-939250.postman.co/workspace/Mosip-Stack~f3d15b43-032d-423d-84f1-fab7c0114ec3/collection/24329429-568cc3d3-7c01-479a-817b-4851c8bfbc17?action=share&source=collection_link&creator=24329429" + "_exporter_id": "24329429" }, "item": [ { @@ -617,7 +616,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"requestTime\": \"{{$isoTimestamp}}\",\n \"request\": {\n \"transactionId\": \"{{transaction_id}}\",\n \"individualId\": \"{{individual_id}}\",\n \"challengeList\" : [\n {\n \"authFactorType\" : \"KBA\",\n \"challenge\" : \"eyJmdWxsTmFtZSI6IkFiaGlzaGVrIEdhbmd3YXIiLCJkb2IiOiIxOTY3LTEwLTI0In0=\",\n \"format\" : \"base64url-encoded-json\"\n }\n ]\n }\n}", + "raw": "{\n \"requestTime\": \"{{$isoTimestamp}}\",\n \"request\": {\n \"transactionId\": \"{{transaction_id}}\",\n \"individualId\": \"{{individual_id}}\",\n \"challengeList\" : [\n {\n \"authFactorType\" : \"KBA\",\n \"challenge\" : \"eyJmdWxsTmFtZSI6IkFiaGlzaGVrIEdhbmd3YXIiLCJkb2IiOiIxOTY5LTEyLTI0In0=\",\n \"format\" : \"base64url-encoded-json\"\n }\n ]\n }\n}", "options": { "raw": { "language": "json" @@ -894,8 +893,6 @@ "{{certifyServiceUrl}}" ], "path": [ - "v1", - "certify", "issuance", "credential" ] diff --git a/docker-compose/docker-compose-certify/postman-collections/certify-sunbird-flow.postman_environment.json b/docker-compose/docker-compose-certify/postman-collections/certify with sunbird flow.postman_environment.json similarity index 99% rename from docker-compose/docker-compose-certify/postman-collections/certify-sunbird-flow.postman_environment.json rename to docker-compose/docker-compose-certify/postman-collections/certify with sunbird flow.postman_environment.json index 0651898a..ca069158 100644 --- a/docker-compose/docker-compose-certify/postman-collections/certify-sunbird-flow.postman_environment.json +++ b/docker-compose/docker-compose-certify/postman-collections/certify with sunbird flow.postman_environment.json @@ -1,5 +1,5 @@ { - "id": "9767c2be-c5fe-48eb-8161-0160c048478f", + "id": "b4b414b7-9100-4206-af6f-ae0801ee2ab3", "name": "esignet-OIDC-flow-with-mock", "values": [ { @@ -49,7 +49,7 @@ }, { "key": "aud", - "value": "http://localhost:8088/v1/esignet/oauth/token", + "value": "http://localhost:8088/v1/esignet/oauth/v2/token", "enabled": true }, { @@ -164,7 +164,7 @@ }, { "key": "audUrl", - "value": "http://localhost:8088", + "value": "http://localhost:8090", "type": "default", "enabled": true }, @@ -176,6 +176,6 @@ } ], "_postman_variable_scope": "environment", - "_postman_exported_at": "2024-05-31T08:38:57.183Z", - "_postman_exported_using": "Postman/10.24.25" + "_postman_exported_at": "2024-06-05T18:31:18.557Z", + "_postman_exported_using": "Postman/10.24.26" } \ No newline at end of file