Hi,
I want to change the redirect URI of Camunda logout to a custom logout page.
I am trying to do with the custom scripts mentioned in Camunda Guide.
https://docs.camunda.org/manual/7.8/webapps/tasklist/configuration/#custom-scripts
I have written a controller
customModule.controller(‘camHeaderViewsCtrl’, [’$window’, ‘$scope’, function($window, $scope) {
// isLoggedIn: flag set to true initially, since user is logged in
var isLoggedIn = true;
// register listener to 'authentication.changed' event
var listener = $scope.$root.$on('authentication.changed', function(ev, auth) {
if(!auth && isLoggedIn) {
console.log('logout');
isLoggedIn = false;
}
});
// remove listener to 'authentication.changed' event
$scope.$on('$destroy', function() {
listener();
});
}]);
return customModule;
});
Still when I hit logout ,it is going to the Camunda Sign in page.
Could anyone guide what more needs to be done.
Regards,
Susmita