From 2f030650e9364bbf6afcd421e276fc7235b93c2b Mon Sep 17 00:00:00 2001 From: Brock Allen Date: Tue, 6 Aug 2019 15:44:54 -0400 Subject: [PATCH] fall back to redirect_uri if no silent redirect uri configured #473 --- src/UserManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UserManager.js b/src/UserManager.js index 6e7cc193..5cf38865 100644 --- a/src/UserManager.js +++ b/src/UserManager.js @@ -238,7 +238,7 @@ export class UserManager extends OidcClient { } _signinSilentIframe(args = {}) { - let url = args.redirect_uri || this.settings.silent_redirect_uri; + let url = args.redirect_uri || this.settings.silent_redirect_uri || this.settings.redirect_uri; if (!url) { Log.error("UserManager.signinSilent: No silent_redirect_uri configured"); return Promise.reject(new Error("No silent_redirect_uri configured")); @@ -311,7 +311,7 @@ export class UserManager extends OidcClient { querySessionStatus(args = {}) { args.request_type = "si:s"; // this acts like a signin silent - let url = args.redirect_uri || this.settings.silent_redirect_uri; + let url = args.redirect_uri || this.settings.silent_redirect_uri || this.settings.redirect_uri; if (!url) { Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"); return Promise.reject(new Error("No silent_redirect_uri configured"));