Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin-Mamoru committed May 2, 2024
1 parent ade37d3 commit 9e5c583
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion petcare-sample/b2c/web-app/petdesk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dbPort = "<DB_PORT>"
clientID: "<CONFIGURED_SPA_CLIENT_ID>",
signInRedirectURL: "http://localhost:5173",
signOutRedirectURL: "http://localhost:5173",
resourceServerURL: "http://localhost:9090",
petManagementServiceURL: "http://localhost:9090",
billingServerURL: "http://localhost:9091",
scope: ["openid", "email", "profile"]
```
Expand Down
6 changes: 3 additions & 3 deletions petcare-sample/b2c/web-app/petdesk/web/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ To configure the front-end application, follow the steps given below.
clientID: "<asgardeo-client-id>",
signInRedirectURL: "<web-app-url>",
signOutRedirectURL: "<web-app-url>",
resourceServerURL: "<pet-management-service-url>"
petManagementServiceURL: "<pet-management-service-url>"
};
```
7. Fill the placeholders with the values you copied from the previous steps as follows.
Expand All @@ -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.
Expand Down Expand Up @@ -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": "<API-ENDPOINT-OF-PET-MGT-SERVICE>",
"petManagementServiceURL": "<API-ENDPOINT-OF-PET-MGT-SERVICE>",
"billingServerURL": "<API-ENDPOINT-OF-BILLING-MGT-SERVICE>"
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Config {
signInRedirectURL: string;
signOutRedirectURL: string;
myAccountAppURL: string;
resourceServerURL: string;
petManagementServiceURL: string;
billingServerURL: string;
salesforceServerURL: string;
}
Expand All @@ -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"],
Expand Down

0 comments on commit 9e5c583

Please sign in to comment.