Skip to content

Commit

Permalink
Changes to add custom Keycloak relative path (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumesh-aot authored Mar 21, 2024
1 parent 584cdb3 commit b11bd89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion forms-flow-admin/src/endpoints/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ declare global {
}
export const WEB_BASE_URL = (window._env_ && window._env_.REACT_APP_WEB_BASE_URL)
export const KEYCLOAK_URL = (window._env_ && window._env_.REACT_APP_KEYCLOAK_URL)
export const KEYCLOAK_URL_AUTH = `${KEYCLOAK_URL}/auth`
export const KEYCLOAK_URL_HTTP_RELATIVE_PATH = (window._env_ && window._env_.REACT_APP_KEYCLOAK_URL_HTTP_RELATIVE_PATH) || '/auth';
export const KEYCLOAK_URL_AUTH = `${KEYCLOAK_URL}${KEYCLOAK_URL_HTTP_RELATIVE_PATH}`;

export const KEYCLOAK_URL_REALM = (window._env_ && window._env_.REACT_APP_KEYCLOAK_URL_REALM)
export const KEYCLOAK_CLIENT = (window._env_ && window._env_.REACT_APP_KEYCLOAK_CLIENT)
6 changes: 4 additions & 2 deletions forms-flow-nav/src/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ export const ENABLE_APPLICATIONS_MODULE =
? false
: true;


export const KEYCLOAK_AUTH_URL = `${KEYCLOAK_URL}/auth`;
export const KEYCLOAK_URL_HTTP_RELATIVE_PATH =
(window._env_ && window._env_.REACT_APP_KEYCLOAK_URL_HTTP_RELATIVE_PATH) || '/auth';

export const KEYCLOAK_AUTH_URL = `${KEYCLOAK_URL}${KEYCLOAK_URL_HTTP_RELATIVE_PATH}`;

export const CLIENT = "formsflow-client";
export const STAFF_DESIGNER = "formsflow-designer";
Expand Down

0 comments on commit b11bd89

Please sign in to comment.