From 9e5c58397065d90016b15074068651252e262b08 Mon Sep 17 00:00:00 2001 From: Sachin-Mamoru Date: Thu, 2 May 2024 21:40:44 +0530 Subject: [PATCH] resolved comments --- petcare-sample/b2c/web-app/petdesk/README.md | 2 +- petcare-sample/b2c/web-app/petdesk/web/react/README.md | 6 +++--- .../b2c/web-app/petdesk/web/react/public/config.js | 2 +- .../petdesk/web/react/src/components/CreatePet/instance.ts | 2 +- .../b2c/web-app/petdesk/web/react/src/util/getConfig.tsx | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/petcare-sample/b2c/web-app/petdesk/README.md b/petcare-sample/b2c/web-app/petdesk/README.md index d9b5b29df..490f985aa 100644 --- a/petcare-sample/b2c/web-app/petdesk/README.md +++ b/petcare-sample/b2c/web-app/petdesk/README.md @@ -44,7 +44,7 @@ dbPort = "" clientID: "", signInRedirectURL: "http://localhost:5173", signOutRedirectURL: "http://localhost:5173", - resourceServerURL: "http://localhost:9090", + petManagementServiceURL: "http://localhost:9090", billingServerURL: "http://localhost:9091", scope: ["openid", "email", "profile"] ``` diff --git a/petcare-sample/b2c/web-app/petdesk/web/react/README.md b/petcare-sample/b2c/web-app/petdesk/web/react/README.md index bad5ddb2a..621da056d 100644 --- a/petcare-sample/b2c/web-app/petdesk/web/react/README.md +++ b/petcare-sample/b2c/web-app/petdesk/web/react/README.md @@ -397,7 +397,7 @@ To configure the front-end application, follow the steps given below. clientID: "", signInRedirectURL: "", signOutRedirectURL: "", - resourceServerURL: "" + petManagementServiceURL: "" }; ``` 7. Fill the placeholders with the values you copied from the previous steps as follows. @@ -412,7 +412,7 @@ To configure the front-end application, follow the steps given below. - Click **Production** Keys in the left navigation menu. - Copy and paste the value of the **Consumer Key**. - - resourceServerURL + - petManagementServiceURL - Open the **API** you created previously via **Developer Portal**. - In the **Overview** section of the API, you can find the **Endpoint(s)**. - Copy and paste the value of On the **Endpoint(s)** section. @@ -454,7 +454,7 @@ Read more about the SDK configurations [here](../../README.md#authprovider). "signInRedirectURL": "http://localhost:3000", "signOutRedirectURL": "http://localhost:3000", "scope": ["profile","openid","email"], - "resourceServerURL": "", + "petManagementServiceURL": "", "billingServerURL": "" } ``` diff --git a/petcare-sample/b2c/web-app/petdesk/web/react/public/config.js b/petcare-sample/b2c/web-app/petdesk/web/react/public/config.js index f9aa448c8..21c2ca9bc 100644 --- a/petcare-sample/b2c/web-app/petdesk/web/react/public/config.js +++ b/petcare-sample/b2c/web-app/petdesk/web/react/public/config.js @@ -4,7 +4,7 @@ window.config = { signInRedirectURL: "http://localhost:3000", signOutRedirectURL: "http://localhost:3000", myAccountAppURL: "", - resourceServerURL: "http://localhost:9090", + petManagementServiceURL: "http://localhost:9090", billingServerURL: "http://localhost:9091", salesforceServerURL: "http://localhost:9092", scope: ["openid", "email", "profile", "acr"], diff --git a/petcare-sample/b2c/web-app/petdesk/web/react/src/components/CreatePet/instance.ts b/petcare-sample/b2c/web-app/petdesk/web/react/src/components/CreatePet/instance.ts index 30f17b9fa..0c849fef0 100644 --- a/petcare-sample/b2c/web-app/petdesk/web/react/src/components/CreatePet/instance.ts +++ b/petcare-sample/b2c/web-app/petdesk/web/react/src/components/CreatePet/instance.ts @@ -20,6 +20,6 @@ import { initInstance } from "../../pages/instance"; import { getConfig } from "../../util/getConfig"; export const getPetInstance = () => { - const conf = getConfig().resourceServerURL; + const conf = getConfig().petManagementServiceURL; return initInstance(conf); }; diff --git a/petcare-sample/b2c/web-app/petdesk/web/react/src/util/getConfig.tsx b/petcare-sample/b2c/web-app/petdesk/web/react/src/util/getConfig.tsx index b3a034d43..b576204b2 100644 --- a/petcare-sample/b2c/web-app/petdesk/web/react/src/util/getConfig.tsx +++ b/petcare-sample/b2c/web-app/petdesk/web/react/src/util/getConfig.tsx @@ -23,7 +23,7 @@ interface Config { signInRedirectURL: string; signOutRedirectURL: string; myAccountAppURL: string; - resourceServerURL: string; + petManagementServiceURL: string; billingServerURL: string; salesforceServerURL: string; } @@ -40,7 +40,7 @@ const authConfig = { signInRedirectURL: window.config.signInRedirectURL, signOutRedirectURL: window.config.signOutRedirectURL, myAccountAppURL: window.config.myAccountAppURL, - resourceServerURL: window.config.resourceServerURL, + petManagementServiceURL: window.config.petManagementServiceURL, billingServerURL: window.config.billingServerURL, salesforceServerURL: window.config.salesforceServerURL, scope: ["openid", "profile", "email", "acr"],