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

Update the content related to config.js file and README #468

Merged
merged 2 commits into from
May 5, 2024
Merged
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
14 changes: 9 additions & 5 deletions petcare-sample/b2c/web-app/petdesk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ window.config = {
billingServerURL: "<billing-service-url>",
salesforceServerURL: "<sales-force-service-url>",
scope: ["openid", "email", "profile"]
myAccountAppURL: "<MY_ACCOUNT_URL>",
myAccountAppURL: "<my-account-url>",
enableOIDCSessionManagement: true
};
```
Expand All @@ -143,9 +143,13 @@ window.config = {
7. When the application is deployed successfully you will get an url in the section **Web App URL**. Copy the **Web App URL**.
8. Click the **Manage Configs & Secrets** on the bottom of the deployment card.
9. On the Config-file you created, click the **edit icon** on the right side corner.
9. Copy and paste the **Web App URL** as the **signInRedirectURL** and **signOutRedirectURL** in the config.js.
10. Click **Save**.
11. Add the same **Web App URL** in the Asgardeo application
10. Update the file mount path to **/usr/share/nginx/html/config.js**
11. Copy and paste the **Web App URL** as the **signInRedirectURL** and **signOutRedirectURL** in the config.js file mount.
12. Click **Save**.
13. Navigate to **Asgardeo** console.
14. Click Applications and open the `Pet Management App`.
15. Navigate to Protocol tab
15. Add the same **Web App URL** to **Authorized redirect URLs** and **Allowed origins**.


## Step 2.4: Update the configurations of the front-end application
Expand Down Expand Up @@ -461,7 +465,7 @@ dbPort = "<DB_PORT>"
billingServerURL: "http://localhost:9091",
salesforceServerURL: "http://localhost:9092",
scope: ["openid", "email", "profile"]
myAccountAppURL: "<MY_ACCOUNT_URL>",
myAccountAppURL: "<my-account-url>",
enableOIDCSessionManagement: true
```
2. Run the application by executing the following command in the terminal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ export const HomePage: FunctionComponent = (): ReactElement => {
signOut();
};

// If `clientID` is not defined in `config.json`, show a UI warning.
// If `clientID` is not defined in `config.js`, show a UI warning.
if (!getConfig().clientID) {

return (
<div className="content">
<h2>You need to update the Client ID to proceed.</h2>
<p>Please open &quot;src/config.json&quot; file using an editor, and update
<p>Please open &quot;public/config.js&quot; file using an editor, and update
dasuni-30 marked this conversation as resolved.
Show resolved Hide resolved
the <code>clientID</code> value with the registered application&apos;s client ID.</p>
<p>Visit repo <a
href="https://github.com/asgardeo/asgardeo-auth-react-sdk/tree/master/samples/asgardeo-react-app">README</a> for
Expand Down
Loading