I have installed the MOSIP Compliance Toolkit locally.(v1.4.2)
On my test PC, I deployed mosip-infra V3 (version 1.2.0.2) using RKE.
The following components have been installed:
conf-secrets
config-server
artifactory
keymanager
mock-smtp
kernel
masterdata-loader
biosdk
pms
I’m currently facing the following three issues and need assistance resolving them:
1. Keycloak Initialization Error
While executing keycloak-init.sh for the Compliance Toolkit, an error occurred related to the provider "recaptcha-u-p-form".
To bypass this, I removed the authentication_flows section from the keycloak-init-values.yaml file.
2. Login Page Issue
The login screen of the locally deployed Compliance Toolkit looks different from the one at https://compliance.synergy.mosip.net.
Specifically, the “Register User” option is missing.
As a workaround, I manually created a user directly in Keycloak.
After logging in to the toolkit, I see the following error: ERROR - Template not found. Upload template and try again!
I followed the instructions in the official documentation under “Steps to upload terms and conditions velocity templates to the Database”,
but an error still occurs during the upload process.
1 & 3. Do follow 1.4.0 | Compliance Tool Kit
2. In keycloak, you will have to enable “user registration” option under the realm. After that you will get Register User option in the UI.
Same CTK setup steps documentation as 1.4.0 applies to 1.4.1 and 1.4.2 as well. So you can try with any of these.
This documentation will not include keycloak setup and hence no reference to “recaptcha-u-p-form” is there in this documentation.
Which image are you running with toolkit-keycloak-init job?
It should be mosipid/keycloak-init:1.2.0.1
I was able to run keycloak-init.sh and confirm that the Compliance Toolkit is working by removing the authentication_flows section from the keycloak-init-values.yaml file.
The reason I raised this issue is because the script refers to the "recaptcha-u-p-form" flow, which I assumed requires the recaptcha provider under Create Authenticator Execution > provider in Keycloak. However, I couldn’t find the recaptcha provider in my Keycloak installation.
If the Compliance Toolkit works fine without the recaptcha provider, I think I can proceed with testing as is.
Additionally, regarding 3. Missing Template Error After Login, I was able to verify that it works correctly by following these steps:
– Add a user role
– Log in with that user in the Compliance Toolkit UI
– Follow the instructions in “Steps to upload terms and conditions velocity templates to the Database”