From 8daf0b59cc4570f79aa1d499eb08e448491ba0bf Mon Sep 17 00:00:00 2001 From: Swati Goel Date: Fri, 15 Dec 2023 16:13:51 +0530 Subject: [PATCH] [DSD-3960]: Update mimoto and inji configuration (#4957) Signed-off-by: Swati Goel --- inji-default.properties | 6 ++++++ mimoto-default.properties | 25 ++++++++++++++++++++--- mimoto-issuers-config.json | 41 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 mimoto-issuers-config.json diff --git a/inji-default.properties b/inji-default.properties index 953cd3b81a2..b55cb175bf2 100644 --- a/inji-default.properties +++ b/inji-default.properties @@ -16,5 +16,11 @@ mosip.inji.audience=ida-binding mosip.inji.issuer=residentapp # warning screen domain name mosip.inji.warningDomainName=https://${mosip.api.public.host} +# inji documentation url +mosip.inji.aboutInjiUrl=https://docs.mosip.io/inji +# minimum storage space required for making audit entry in MB +mosip.inji.minStorageRequiredForAuditEntry=2 # minimum storage space required for downloading / receiving vc in MB mosip.inji.minStorageRequired=5 +#timeout for vc download api via openid4vci flow in milliseconds +mosip.inji.openId4VCIDownloadVCTimeout=30000 \ No newline at end of file diff --git a/mimoto-default.properties b/mimoto-default.properties index 300b8de2d6d..564acfb0096 100644 --- a/mimoto-default.properties +++ b/mimoto-default.properties @@ -2,6 +2,7 @@ public.url=${mosip.api.internal.url}/residentmobileapp mosip.resident.base.url=${mosip.resident.url}/resident/v1 +mosip.esignet.base.url=${mosip.esignet.host}/v1/esignet idp.binding.base.url=https://${mosip.api.public.host}/v1/esignet/binding RESIDENT_OTP=${mosip.resident.base.url}/req/otp @@ -12,6 +13,7 @@ RESIDENT_AUTH_LOCK=${mosip.resident.base.url}/req/auth-lock RESIDENT_AUTH_UNLOCK=${mosip.resident.base.url}/req/auth-unlock RESIDENT_INDIVIDUALID_OTP=${mosip.resident.base.url}/individualId/otp RESIDENT_AID_GET_INDIVIDUALID=${mosip.resident.base.url}/aid/status + BINDING_OTP=${idp.binding.base.url}/binding-otp WALLET_BINDING=${idp.binding.base.url}/wallet-binding @@ -99,10 +101,10 @@ mosip.country.code=MOR registration.processor.signature.isEnabled=true # Language Supported By Platform - ISO -mosip.supported-languages=eng,ara,fra +mosip.supported-languages=eng,ara,kan,hin,tam,fra mosip.template-language=eng -mosip.optional-languages=ara,fra +mosip.optional-languages=kan,ara,fra,tam,hin mosip.mandatory-languages=eng # mosip.primary-language=eng @@ -126,7 +128,7 @@ mosip.kernel.tokenid.length=36 # log level logging.level.root=WARN -logging.level.io.mosip=DEBUG +logging.level.io.mosip=INFO # logging.level.io.mosip.kernel.auth.defaultadapter.filter=INFO logging.level.io.mosip.kernel.auth.defaultadapter=DEBUG logging.level.org.springframework.http.client=DEBUG @@ -183,3 +185,20 @@ wallet.binding.partner.api.key=${mimoto.wallet.binding.partner.api.key} mosip.kernel.masterdata.code.validate.regex=[^a-z0-9\u0600-\u06FF\u0C80-\u0CFF] mosip.kernel.masterdata.name.validate.regex=[^a-z\u0600-\u06FF\u0C80-\u0CFF] + +#mosip notification otp channel config +mosip.notificationtype=SMS|EMAIL|PHONE + +# OpenID +# Configurations related to openid4vc +mosip.openid.issuers=mimoto-issuers-config.json +GET_TOKEN=${public.internet.url}/v1/esignet/login/oauth/token +mosip.oidc.esignet.token.endpoint=https://${mosip.esignet.base.url}/oauth/v2/token +mosip.oidc.esignet.aud=https://${mosip.esignet.base.url}/oauth/v2/token +mosip.oidc.client.id=${mimoto.oidc.partner.clientid} +mosip.oidc.client.assertion.type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer +mosip.oidc.p12.filename=oidckeystore.p12 +mosip.oidc.p12.password=${mimoto.oidc.keystore.password} +mosip.oidc.p12.alias=mpartner-default-mimotooidc +#Property to test the mounted p12 file extraction of openid4vci flow. +mosip.oidc.p12.path=certs/ \ No newline at end of file diff --git a/mimoto-issuers-config.json b/mimoto-issuers-config.json new file mode 100644 index 00000000000..ef317989e4d --- /dev/null +++ b/mimoto-issuers-config.json @@ -0,0 +1,41 @@ +{ + "issuers": [ + { + "credential_issuer": "Mosip", + "display": [ + { + "name": "UIN, VID, AID", + "logo": { + "url": "https://${mosip.api.public.host}/inji/digit-icon.png", + "alt_text": "digits-icon" + }, + "language": "en" + } + ], + "protocol": "OTP" + }, + { + "credential_issuer": "ESignet", + "display": [ + { + "name": "e-Signet", + "logo": { + "url": "https://${mosip.esignet.host}/logo.png", + "alt_text": "esignet-logo" + }, + "language": "en" + } + ], + "protocol": "OpenId4VCI", + "client_id": "${mimoto.oidc.partner.clientid}", + "scopes_supported": ["mosip_identity_vc_ldp"], + "additional_headers": { "Accept": "application/json" }, + ".well-known": null, + "redirect_uri": "io.mosip.residentapp.inji://oauthredirect", + "authorization_endpoint": "https://${mosip.esignet.host}/authorize", + "token_endpoint": "https://${mosip.api.public.host}/residentmobileapp/get-token", + "credential_endpoint": "https://${mosip.esignet.host}/v1/esignet/vci/credential", + "credential_audience": "https://${mosip.esignet.host}/v1/esignet" + } + ] +} \ No newline at end of file