Support local development dashboard login

This commit is contained in:
Johannes Zellner
2023-06-15 15:08:09 +02:00
parent 33c1b4ae3b
commit b6739e9d77
2 changed files with 17 additions and 6 deletions

View File

@@ -2714,8 +2714,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
this.setToken(null);
// start oidc flow
window.location.href = '/openid/auth?client_id=dashboard&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html';
// window.location.href = '/login.html?returnTo=/' + encodeURIComponent(window.location.hash);
window.location.href = this.apiOrigin + '/openid/auth?client_id=' + (this.apiOrigin ? 'development' : 'dashboard') + '&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html';
};
Client.prototype.logout = function () {