Oidc-client-js: Frame Window Timed Out error while trying to renew the token from UserManager

Created on 11 Apr 2017  路  6Comments  路  Source: IdentityModel/oidc-client-js

Hi,

I am new to this, so kindly bare with me. We are having the token expiration time of 60 minutes in our angular app. Just before on minute from which the token gets expired, we are triggering a popup to continue the session in the application. There's a button which is triggered at that time. Firstly we are checking if the token is expired or not. If it is not expired, we are calling this.userManager.signinSilent().then((user: Oidc.User) => {
this.$uibModalInstance.close();
});

But seeing the above code, I am not getting the promise in the response after signinSilent() is called. Im stuck with this. I am getting Frame Window Timed out error in the console. I think that must be regarding iframe. Can anyone help me on this?

question

Most helpful comment

Closing this issue.. Found the error, it was regarding the invalid redirect uris. Actually, the siloent redirect uri was not present in the allowedredirectUri's which caused the error. Thanks @brockallen for suggesting me to check through the log files. Closing this issue.

All 6 comments

Check the logs of the token service -- perhaps there's an error being displayed in the non-visible iframe.

The error is in iFrameWindow.js.

image

In the above code snippet, in the line

this._timer = window.setTimeout(this._timeout.bind(this), timeout); there is an error while "this._timeout" is called. Then error is thrown saying 'Frame Window Timed out'.

Closing this issue.. Found the error, it was regarding the invalid redirect uris. Actually, the siloent redirect uri was not present in the allowedredirectUri's which caused the error. Thanks @brockallen for suggesting me to check through the log files. Closing this issue.

I have redirect uri set in my database still I am facing this issue. Any Idea?

this.manager.events.addAccessTokenExpiring(() => {
      this.manager.signinSilent()
            .then((user) => {
              debugger;
            })
            .catch((error: Error) => {
              console.log(error);
                this.manager.getUser()
                    .then((user) => {
                      debugger;
                    });
            });
    });

@brockallen These token service logs that you mentioned earlier, where can I find them assuming I installed oidc-client via npm.

@AlexanderBaggett They would be in your token server server somewhere, unrelated to this client.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rmja picture rmja  路  3Comments

StephenRedd picture StephenRedd  路  5Comments

LEW21 picture LEW21  路  4Comments

arnaldo-infinite picture arnaldo-infinite  路  4Comments

pawepaw picture pawepaw  路  3Comments