Skip to content

Commit

Permalink
bug not checking null state on signin response processing IdentityMod…
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Aug 31, 2019
1 parent a8d599d commit 0437716
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/OidcClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,14 @@ export class OidcClient {
Log.debug("OidcClient.processSignoutResponse");

return this.readSignoutResponseState(url, stateStore, true).then(({state, response}) => {
Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response");
return this._validator.validateSignoutResponse(state, response);
if (state) {
Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response");
return this._validator.validateSignoutResponse(state, response);
}
else {
Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response");
return response;
}
});
}

Expand Down

0 comments on commit 0437716

Please sign in to comment.