Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ABDM Settings for India environment #6215

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions environments/india/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ localsettings:
manage_releases_per_location:
always_disabled:
- 'icds-cas'
ABDM_ABHA_URL: '<TODO - add_abdm_prod_abha>'
ABDM_GATEWAY_URL: '<TODO - add_abdm_prod_gateway>'
ABDM_X_CM_ID: 'ndhm'
LOCAL_APPS:
- {name: "abdm_integrator.abha", host: "all"}
- {name: "abdm_integrator.hiu", host: "all"}
- {name: "abdm_integrator.hip", host: "all"}

commcare_cloud_root_user: ubuntu
commcare_cloud_pem: ~/.ssh/id_rsa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,24 +1148,17 @@ USE_PHONE_ENTRIES = {{ localsettings.USE_PHONE_ENTRIES }}
CHECK_REPEATERS_PARTITION_COUNT = {{ localsettings.CHECK_REPEATERS_PARTITION_COUNT }}
{% endif %}

{% if localsettings.ABDM_ABHA_URL is defined %}
ABDM_ABHA_URL = {{ localsettings.ABDM_ABHA_URL }}
{% endif %}

{% if localsettings.ABDM_GATEWAY_URL is defined %}
ABDM_GATEWAY_URL = {{ localsettings.ABDM_GATEWAY_URL }}
{% endif %}

{% if localsettings.ABDM_X_CM_ID is defined %}
ABDM_X_CM_ID = {{ localsettings.ABDM_X_CM_ID }}
{% endif %}

{% if ABDM_CLIENT_ID %}
ABDM_CLIENT_ID = {{ ABDM_CLIENT_ID }}
{% endif %}

{% if ABDM_CLIENT_SECRET %}
ABDM_CLIENT_SECRET = {{ ABDM_CLIENT_SECRET }}
ABDM_INTEGRATOR = {
"CLIENT_ID": {% if ABDM_CLIENT_ID %}'{{ ABDM_CLIENT_ID }}',{% else %}None{% endif %},
"CLIENT_SECRET": {% if ABDM_CLIENT_SECRET %}'{{ ABDM_CLIENT_SECRET }}',{% else %}None{% endif %},
'X_CM_ID': {% if localsettings.ABDM_X_CM_ID is defined %}'{{ localsettings.ABDM_X_CM_ID }}'{% else %}None{% endif %},
'ABHA_URL': {% if localsettings.ABDM_ABHA_URL is defined %}'{{ localsettings.ABDM_ABHA_URL }}'{% else %}None{% endif %},
'GATEWAY_URL': {% if localsettings.ABDM_GATEWAY_URL is defined %}'{{ localsettings.ABDM_GATEWAY_URL }}'{% else %}None{% endif %},
"USER_MODEL": "abdm.ABDMUser",
"AUTHENTICATION_CLASS": "custom.abdm.auth.ABDMUserAuthentication",
"HRP_ABHA_REGISTERED_CHECK_CLASS": "custom.abdm.integrations.AbhaRegisteredCheck",
}
{% endif %}

{% if FCM_CREDS %}
Expand Down
Loading