Hi Team,
I cloned eSignet backend service source code from the github as per the documentation and mockIdentitySystemApplication source code as well. Tried to run that application in local but facing the bean creation issue.
Thanks in advance
Hi Team,
I cloned eSignet backend service source code from the github as per the documentation and mockIdentitySystemApplication source code as well. Tried to run that application in local but facing the bean creation issue.
Thanks in advance
Dear @narayana_prakash,
Thank you for reaching out, Letās look into your query and ask one of our experts to respond to it here.
Best Regards
Team MOSIP
Dear @keshavs
Thanks for your response. Please share the documentation to set up the esignet in local.
Hi @keshavs
Here is the steps u need to follow to setup esignet into your local
========Esignet-setup=============
The project requires JDK 11.
First You need to build the Esignet with this commant. Make sure you have both jkd-11 and maven set up in enviroment path
1-> mvn clean install -Dgpg.skip=true
after the build get succes you have to configure the postgress database from application-local-properties file
spring.datasource.url=jdbc:postgresql://localhost:5432/mosip_esignet
spring.datasource.username=postgres
spring.datasource.password=postgres
Configure this properties base on your postgres credentials i.e portNo, username and password
==========DataBase SetUp==========================
Create database āmosip_esignetā.
Run all the scripts provided under db_scripts/mosip_esignet/ddl folder.
Run the below insert statements in mosip_esignet database:
INSERT INTO KEY_POLICY_DEF(APP_ID,KEY_VALIDITY_DURATION,PRE_EXPIRE_DAYS,ACCESS_ALLOWED,IS_ACTIVE,CR_BY,CR_DTIMES) VALUES (āROOTā, 1095, 50, āNAā, true, āmosipadminā, now());
INSERT INTO KEY_POLICY_DEF(APP_ID,KEY_VALIDITY_DURATION,PRE_EXPIRE_DAYS,ACCESS_ALLOWED,IS_ACTIVE,CR_BY,CR_DTIMES) VALUES (āOIDC_SERVICEā, 1095, 50, āNAā, true, āmosipadminā, now());
INSERT INTO KEY_POLICY_DEF(APP_ID,KEY_VALIDITY_DURATION,PRE_EXPIRE_DAYS,ACCESS_ALLOWED,IS_ACTIVE,CR_BY,CR_DTIMES) VALUES (āOIDC_PARTNERā, 1095, 50, āNAā, true, āmosipadminā, now());
INSERT INTO KEY_POLICY_DEF(APP_ID,KEY_VALIDITY_DURATION,PRE_EXPIRE_DAYS,ACCESS_ALLOWED,IS_ACTIVE,CR_BY,CR_DTIMES) VALUES (āBINDING_SERVICEā, 1095, 50, āNAā, true, āmosipadminā, now());
INSERT INTO KEY_POLICY_DEF(APP_ID,KEY_VALIDITY_DURATION,PRE_EXPIRE_DAYS,ACCESS_ALLOWED,IS_ACTIVE,CR_BY,CR_DTIMES) VALUES (āMOCK_BINDING_SERVICEā, 1095, 50, āNAā, true, āmosipadminā, now());
INSERT CLIENT_DETAIL
(id, ānameā, rp_id, logo_uri, redirect_uris, claims, acr_values, public_key, grant_types, auth_methods, status, cr_dtimes, upd_dtimes)
VALUES(āhealthservicesā, ā{ātamā:āą®ąÆą®ą®¾ą®¤ą®¾ą®° ą®ąÆą®µąÆā,āaraā:āŁŁŲ®ŲÆŁ Ų§ŲŖ Ų§ŁŲµŲŁŲ©ā,ā@noneā:āHealth Default Serviceā,ākanā:āą²ą²°ą³ą²ą³ą²Æ ą²øą³ą²µą³ā,āhinā:āą¤øą„ą¤µą¤¾ą¤øą„ą¤„ą„ą¤Æ ą¤øą„ą¤µą¤¾ā,āengā:āHealth Serviceā}ā, āmpartner-default-idp-relyparty-newā, āhttps://healthservices.dev3.mosip.net/images/doctor_logo.pngā, ā[āhttp://localhost:5000/userprofileā,āhttp://localhost:5000/registrationā,āhttps://healthservices.dev.mosip.net/userprofileā]ā, ā[ānameā,āemailā,āgenderā,āphone_numberā,ābirthdateā,āpictureā]ā, ā[āmosip:idp:acr:static-codeā,āmosip:idp:acr:generated-codeā,āmosip:idp:acr:biometricsā,āmosip:idp:acr:passwordā,āmosip:idp:acr:linked-walletā]ā, ā{āktyā:āRSAā,ākidā:ā1bbdc9de-c24f-4801-b6b3-691ac07641afā,āuseā:āsigā,āalgā:āRS256ā,ānā:āwXGQA574CU-WTWPILd4S3_1sJf0Yof0kwMeNctXc1thQo70Ljfn9f4igpRe7f8qNs_W6dLuLWemFhGJBQBQ7vvickECKNJfo_EzSD_yyPCg7k_AGbTWTkuoObHrpilwJGyKVSkOIujH_FqHIVkwkVXjWc25Lsb8Gq4nAHNQEqqgaYPLEi5evCR6S0FzcXTPuRh9zH-cM0Onjv4orrfYpEr61HcRp5MXL55b7yBoIYlXD8NfalcgdrWzp4VZHvQ8yT9G5eaf27XUn6ZBeBf7VnELcKFTyw1pK2wqoOxRBc8Y1wO6rEy8PlCU6wD-mbIzcjG1wUfnbgvJOM4A5G41quQā,āeā:āAQABā}ā, ā[āauthorization_codeā]ā, ā[āprivate_key_jwtā]ā, āACTIVEā, ā2023-05-19 11:07:12.951ā, ā2023-07-13 06:40:34.569ā);
Please follow this step and let me know if found any issue
@kaifk468 Thanks for your response.
eSignet backend service which is running in locally with mock identity. While creating the identity using mock identity api in postman ,Facing the below error .Please assist me on that
Api ā http://localhost:8082/v1/mock-identity-system/identity
Pre request script ā eval(pm.globals.get(āpmlib_codeā))
// Set headers for JWT
var header = {
āalgā: āRS256ā
};
//sign token
const private_key_jwk = {
āpā: ā0-40ISxXDmC8SVrudg1e7vQskyWlohadm83RAkUyH6S4h1aTPrNwLVn9WANnyRTqupD1Fr8mYZ7f9nZ2MkMj45UV8uiIjQZr3crMq0YGkzt_LvwhLduWOJ_z9_9zZNHckXei4G8QQFJQYb3TNdGsVVSwff68SSoen8oqvkbkAJsā,
āktyā: āRSAā,
āqā: ā6as88odcbP2MDT9lkahK2z4QIH25zsa_UdLgAtLwDVpekXfJNOQvuqNY1Gw3Jws6uPDLGcEK42MyeOdCFqklFTvDJlJXMFvgWrmGbCUMvJL-rFyO-kCTGnFBX60ozdJbjfBt3E3QYx3G907Ziuu9o0azey1DJtq_zKwearE-xTsā,
ādā: āBgdeiCZbr5qZ4haShg9uQinZRYPSUTYc_58YgvQ0WkPKm5fINOgOJPvimdKYBt8OtIWbhojTyn0TKrGPPAqFZCnGY16HkCUN31MbluD2wxYz6SPpZ1zsmP8PbQUVozjEFeLpiTN6nubw_skS_9GGrl1CPb25wTPlZtI3uQ5IiPL_YD5j_w5_J7tejAaRbhlJj48ZDa4CR8BkaUi2Qa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quQā
}
const signed_jwt = pmlib.clientAssertPrivateKey(private_key_jwk, pm.environment.get(āclientIdā), pm.environment.get(āaudā), exp = 60, āRS256ā);
pm.collectionVariables.set(āclient_assertionā,signed_jwt);
Error : There was an error in evaluating the Pre-request Script:ReferenceError: pmlib is not defined
There were some parsing library missing in your postman
Downloard this collection : postman-util-lib/postman/PostmanUtilityLibv2.postman_collection.json at master Ā· joolfe/postman-util-lib Ā· GitHub
and execute both the request api i.e lib install and lib use example
Thanks @kaifk468. Now itās working.
Feel free to let us know if you find any issue further
Thanks
@kaifk468 I have run and done the mock Api check using e-Signet Collection Mock IDA collection.
Here how can we test the real data using this e-Signet Collection MOSIP IDA collection?
If we hit the authorization/send-otp api ,That response comes in JSON file from eSignet service.
Response ā {
āresponseTimeā: ā2024-09-17T10:29:28.830Zā,
āresponseā: {
ātransactionIdā: āXVnPozkI8UuLxFBxKSSESHrwIUtezMFW4mCi1CugdtQā,
āmaskedEmailā: āXXdXXaXXhXXkX@gmail.comā,
āmaskedMobileā: āXXXXXXX357934ā
},
āerrorsā:
}
How will work in real time?
Okay @Anusha_sunkadh.
Thanks
Narayana Prakash.k
Hi @kaifk468 How to run the Inji backend service code in local. Please the documentation, required files and which tag used to clone from github .
Thanks,
Narayana prakash.k
Okay @keshavs
Thanks
Narayana Prakash.k