You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
acquireToken.js does not have a call to this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW, expectedState, true);
acquireTokenRedirect does have this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW, expectedState, true);
Because it is not in storage, _matchState() doesn't find it and hence doesn't set reqest.REQUEST_TYPE = "RENEW_TOKEN" and doesn't set request.stateMatch to true.
Because
Because request.stateMatch is not true, adal.service's handleWindowCallback() does not invoke this.context._callBackMappedToRenewStates[requestInfo.stateResponse] here:
if (requestInfo.stateMatch) {
if (typeof callback === 'function') {
if (requestInfo.requestType === this.context.REQUEST_TYPE.RENEW_TOKEN) {
// Idtoken or Accestoken can be renewed
if (requestInfo.parameters['access_token']) {
callback(this.context._getItem(this.context.CONSTANTS.STORAGE.ERROR_DESCRIPTION)
, requestInfo.parameters['access_token']);
Also, because adal's acquireToken doesn't make the callback, adal.service's refreshLoginToken
The text was updated successfully, but these errors were encountered:
Are you using 4.x? That version should have fixed this issue. You are correct match states fails but in the adal.js method getRequestInfo it has this fallback code which gets called.
// external api requests may have many renewtoken requests for different resourceif(!requestInfo.stateMatch&&window.parent){requestInfo.requestType=this._requestType;varstatesInParentContext=this._renewStates;for(vari=0;i<statesInParentContext.length;i++){if(statesInParentContext[i]===requestInfo.stateResponse){requestInfo.stateMatch=true;break;}}}
in adal.js:
Because request.stateMatch is not true, adal.service's handleWindowCallback() does not invoke this.context._callBackMappedToRenewStates[requestInfo.stateResponse] here:
Also, because adal's acquireToken doesn't make the callback, adal.service's refreshLoginToken
The text was updated successfully, but these errors were encountered: