From 823d3ed794d42027339a8aea9c89875938c9a906 Mon Sep 17 00:00:00 2001 From: ciremusyoka Date: Fri, 15 Oct 2021 08:28:14 +0300 Subject: [PATCH] Document added env REACT_APP_OPENSRP_OAUTH_STATE --- docker/confd_env.toml | 1 + docker/config.js.tmpl | 1 + docs/env.md | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/docker/confd_env.toml b/docker/confd_env.toml index d3d507089..fb0e3b272 100644 --- a/docker/confd_env.toml +++ b/docker/confd_env.toml @@ -120,4 +120,5 @@ keys = [ "/react/app/superset/mda/lite/reporting/ward/geojson/slice", "/react/app/show/map/at/jurisdiction/level", "/react/app/clients/list/batch/size", + "/react/app/superset/oauth/state", ] diff --git a/docker/config.js.tmpl b/docker/config.js.tmpl index 37f1b134a..a387a9aba 100644 --- a/docker/config.js.tmpl +++ b/docker/config.js.tmpl @@ -117,4 +117,5 @@ window._env_ = { "REACT_APP_SUPERSET_MDA_LITE_REPORTING_WARD_GEOJSON_SLICE": "{{ getv "/react/app/superset/mda/lite/reporting/ward/geojson/slice" "0" }}", "REACT_APP_SHOW_MAP_AT_JURISDICTION_LEVEL": "{{ getv "/react/app/show/map/at/jurisdiction/level" "99" }}", "REACT_APP_CLIENTS_LIST_BATCH_SIZE": "{{ getv "/react/app/clients/list/batch/size" "100" }}", + "REACT_APP_SUPERSET_OAUTH_STATE": "{{ getv "/react/app/superset/oauth/state" "opensrp"}}", } diff --git a/docs/env.md b/docs/env.md index 37d51cc00..8e01bb384 100644 --- a/docs/env.md +++ b/docs/env.md @@ -221,3 +221,9 @@ Below is a list of currently supported environment variables: - OpenSRP update plan endpoint parameter (`revoke_assignments`) value. Determines if team assignments for complete and retired plans will be revoked or not. - Options: 'true' and 'false'. Any other value defaults to 'false'. - default: 'true' + +- **REACT_APP_SUPERSET_OAUTH_STATE** + + - **Optional** + - Value of superset provider oauth state + - Defaults to the value of `REACT_APP_OPENSRP_OAUTH_STATE` if not provided.