Skip to content

Commit

Permalink
fall back to redirect_uri if no silent redirect uri configured Identi…
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Aug 6, 2019
1 parent 6a44a79 commit 2f03065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UserManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit 2f03065

Please sign in to comment.