Skip to content

Commit

Permalink
Merge pull request #4957 from pabasara-mahindapala/nodejs-passport-as…
Browse files Browse the repository at this point in the history
…gardeo-guide

Redirect URL change
  • Loading branch information
sagara-gunathunga authored Jan 8, 2025
2 parents 967908e + 3a985a2 commit 921b7ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ router.post("/logout", function (req, res, next) {
return next(err);
}
var params = {
post_logout_redirect_uri: "http://localhost:3000/oauth2/redirect",
post_logout_redirect_uri: "http://localhost:3000",
client_id: process.env.ASGARDEO_CLIENT_ID,
};
res.redirect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ First unless you already have done that, you need to create an organization in {

![Select Traditional Web Application]({{base_path}}/complete-guides/nodejs/assets/img/image5.png){: width="800" style="display: block; margin: 0;"}

Next, complete the wizard popup by providing a suitable name and an authorized redirect URL. Keep OpenID Connect selected as the protocol.
Next, complete the wizard popup by providing a suitable name and following authorized redirect URLs. Keep OpenID Connect selected as the protocol.

!!! Example
**name:** is-nodejs

**Authorized redirect URL:** http://localhost:3000/oauth2/redirect
**Authorized redirect URLs:** http://localhost:3000/oauth2/redirect, http://localhost:3000

![Register a new application]({{base_path}}/complete-guides/nodejs/assets/img/image8.png){: width="800" style="display: block; margin: 0;"}

!!! Info

The authorized redirect URL determines where {{product_name}} should send users after they successfully log in. Typically, this will be the web address where your app is hosted. For this guide, we'll use [http://localhost:3000/oauth2/redirect](http://localhost:3000/oauth2/redirect){:target="_blank"}, as the sample app will be accessible at this URL.
The authorized redirect URL determines where {{product_name}} should send users after they successfully log in. Typically, this will be the web address where your app is hosted. For this guide, we'll use [http://localhost:3000/oauth2/redirect](http://localhost:3000/oauth2/redirect){:target="_blank"} and [http://localhost:3000](http://localhost:3000){:target="_blank"}.

You will need the following information available in the Quick Start tab of your app.

Expand Down

0 comments on commit 921b7ba

Please sign in to comment.