siebel

Can I retrieve the user password, or a symbolic URL, using Siebel eScript?


We have a Siebel 7.8 application that integrates with another webapp.

We implemented it by creating a symbolic URL and embedding it in a Siebel applet within one of our views. But the external webapp has transition animations between pages, which causes some problems in Siebel (specifically, in our CTI toolbar).

So, we removed the applet from our view, and open it as a popup instead. To make it work as a popup we also had to change the symbolic URL definition: instead of "IFrame", now it has "Form redirect" SSO disposition. It works... but it's also giving us some trouble (when the popup is opened, all the applets based on the same BC start acting weird).

Since we are no longer showing the webapp embeded in Siebel, we don't really need the symbolic URL, we could just do window.open("http://example.com");. But we are passing some parameters in the URL, and one of them is the current user's password. The login name, I can get with TheApplication().LoginName(). Is there any way to retrieve the password too?

From my research so far, the answer is "no". Which leads to the next question: is there any way in which I could retrieve the full symbolic URL, from a server or browser script? I can't find anything related in the object interfaces reference, but perhaps there is an undocumented method for that?

Or maybe there is another way to implement this requeriment? It's just opening a popup in Siebel, but the URL must contain the user's password, amongst other parameters.


Solution

  • Ok, that was easier than expected. There is a way to retrieve the current user's password. Undocumented as usual in Siebel, but it works anyway:

    function getCurrentUserPassword() {
        var service = TheApplication().GetService("Web Engine HTTP TXN");
        var psIn = TheApplication().NewPropertySet();
        var psOut = TheApplication().NewPropertySet();
    
        service.InvokeMethod("GetAllRequestParameters", psIn, psOut);
        return psOut.GetProperty("SWEPassword");
    }