Fix re-authentication

This commit is contained in:
2019-01-23 15:35:18 +01:00
parent 5917bde9b3
commit 3eb76afb62
2 changed files with 5 additions and 9 deletions
+4 -1
View File
@@ -66,7 +66,10 @@ export default class AuthenticationClient {
}
checkSession(resolve, reject) {
this.webAuth.checkSession({state: {returnUrl: window.location.href}}, (err, result) => {
const state = {returnUrl: window.location.href};
const nonce = new Date().getTime().toString();
storeStateAndNonce(state, nonce);
this.webAuth.checkSession({state: JSON.stringify(state), nonce: nonce}, (err, result) => {
if (err) {
return reject(err || 'Re-authentication failed');
} else {