Dear rcsampang,
Can you please follow below steps and retry:
Part 1
-
Download Zip file partner management tool from
GitHub - mosip/gist at 1.2.0
NOTE- please add properties “mosip-pms-client, mosip-partnermanager-client” in
id-authentication-internal-default.properties
auth.server.admin.allowed.audience=
partner-management-default.properties
auth.server.admin.allowed.audience=
Restart pms-partner,pms-policy,pms-ui,ida-auth and ida-internal services -
Go to keycloack crate username(ex- mosip123) and password and assign all the roles(PARTNER_ADMIN, PMS_ADMIN And POLICYMANAGER)
-
Unzip and through the path → gist-1.2.0\partnermanagement\src\main\resources
-
Open the application.properties
Change the url of the relevant environment being used.
mosip.service.url = https://api-internal.qatriple.mosip.net
Edit username and password as per our creation
#Token generation username
mosip.authenticate.user=mosip123
#Token generation password
mosip.authenticate.password=mosip@123
Edit mosip-pms-client and mosip-regproc-client secretkey
-
Now build the tool using command from gist-1.2.0\partnermanagement
mvn clean install -Dgpg.skip=true -Dmaven.test.skip=true -
After build sucess, target folder is created
from target folder run the jar file
java -jar partnermanagement-0.0.1-SNAPSHOT.jar
- By running the jar, the below swagger url will be accessible to create the partner.
http://localhost:9091/v1/partnermanager/swagger-ui.html
Part-2
To Create User for Device and Ftm partner in keycloak
-
Login to the keycloak → users → add users–>fill in the details and save.
Create two users one is for Device partner and other is for FTM partner.
Username example – I. For Device partner - mpartner-L1-device-01 and
II. For FTM partner -mpartner-L1-ftm-01. -
Set the password in the credentials option.
Note : Copy the password from the application.properties of the Partner management tooland use here. -
For the created user assign the roles in the role mapping option as below.
For the Device partner user, map the role – DEVICE_PROVIDER from the available roles.
For the ftm partner user, map the role – FTM_PROVIDER from the available roles.
Part-3
To Register AUTH partner
- To Register auth partner, Use the swagger (refer part 1-- > step 7)–>
configureL1Device → try it out–> copy and paste the below given body and execute.
Note: Edit the partner id and organization name as same as
You’ve created. Refer below.
{
“configurationType”: “MOCK”,
“deviceProvider”: {
“partnerAddress”: “Bengaluru”,
“partnerContactNumber”: “9999999999”,
“partnerEmailId”: “device1@gmail.com”,
“partnerId”: “mpartner-l1-device-01”,
“partnerOrganizationName”: “mpartner-l1-device-01”,
“partnerType”: “DEVICE”
},
“environmentVersion”: “LTS”,
“ftmProvider”: {
“partnerAddress”: “Bengaluru”,
“partnerContactNumber”: “9999999999”,
“partnerEmailId”: “ftm1@gmail.com”,
“partnerId”: “mpartner-l1-ftm-01”,
“partnerOrganizationName”: “mpartner-l1-ftm-01”,
“partnerType”: “FTM”
}
} - After the partner creation, .p12 file(device and ftm two separate folders) will be generated inside the temp folder. Find the temp folder in the below mentioned path.
C:\Users\hp\AppData\Local\Temp\IDA-localhost\mpartner-device-01 (Or Use windows + R and search %temp%)
Best Regards,