Hello,
Has any of you ever managed to customize the logout action from the management console? We have a custom SSO tool in front of it so we need to perform some actions after the user signs out.
Any ideas?
Thanks in advance,
--
Marcelo R.
So, I was trying the following approach but my function is never called:
1) Declare a custom .js file in the content workspace page:
- test-themes-render.xml --
< c:theme extend = "corporate" merge-css = "true" merge-javascript = "true" merge-template = "true" >
< c:javascript >
< c:resource path = "/sandbox-view/cma/widget/js/sandbox.js" />
</ c:javascript >
</ c:theme >
2) Check the logout function in vui.js with firebug to see the String value of the topic (it is "/vui/auth/event"):
logout:function(_dc,_dd){ ... _dd.handler=function(_df){ vui.publish( vui.auth.event.TOPIC ,new vui.auth.Event({type:vui.auth.event.LOGOUT})); vui.auth.invalidate();
3) Add a Dojo Toolkit's subscribe() to capture events:
-- sandbox.js --
window.onload = function () {
vui.subscribe( "vui/auth/event/" , myCallBack());
var myCallBack = function () {
alert( 'The subscriber got it!' );
};
...
why the function that I'm setting on the subscriber is never called?
Any help would be extremely appreaciated.
Kind regards,