The Keycloak JS adapter should not create a new browser history entry,

when it is redirecting the user, unless the user is in the admin console.
This commit is contained in:
Tobias Gippert 2018-08-21 10:06:49 +02:00 committed by Stian Thorgersen
parent 371bca57aa
commit c71f6e2188

View file

@ -1159,17 +1159,17 @@
if (!type || type == 'default') { if (!type || type == 'default') {
return { return {
login: function(options) { login: function(options) {
window.location.href = kc.createLoginUrl(options); window.location.replace(kc.createLoginUrl(options));
return createPromise().promise; return createPromise().promise;
}, },
logout: function(options) { logout: function(options) {
window.location.href = kc.createLogoutUrl(options); window.location.replace(kc.createLogoutUrl(options));
return createPromise().promise; return createPromise().promise;
}, },
register: function(options) { register: function(options) {
window.location.href = kc.createRegisterUrl(options); window.location.replace(kc.createRegisterUrl(options));
return createPromise().promise; return createPromise().promise;
}, },