This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How do I send logged in user/pass to external app to match authentications??

simmatecusa - Friday, February 5, 2010 6:20 PM:

We have an ajax file browser running within Aras and I would like to match the authentications so that when a user loads the ajax browser, it automatically signs them into that application after receiving the current logged in users login name and password.

I know I can get the current users ID using the getUserID() method, but that returns the ID not the login name, which is what I need.

This is the code Im loading via an html page, any help/advice or pointing in the right direction would be greatly appreciated!! PS We're using www.ajaxplorer.info..

 

<html>
    <head>
        <script src="ajax.googleapis.com/.../script>
        <script src="jquery.query.js"></script>
        <script>
            var myI = new top.Innovator();
            var userID = myI.getUserID();
            alert(userID);

            function initForm() {
                var theItemId = parent.thisItem.getProperty('item_number');
                if (theItemId && parent.thisItem.isLocked() == 1)    {
                    item_number = parent.thisItem.getProperty('item_number');
                    tab_folder_name = "130 Contracts";   
                    document.getElementById('content_area').src = 'X.X.X.X + item_number + '/' + tab_folder_name + '/';
                }
            }
            </script>
    </head>
    <body topmargin="0" leftmargin="0" bgcolor= "#d4d0c8" onLoad="initForm()">
        <div id="win">
            <iframe width='100%' height='100%' name='content_area' id='content_area'></iframe>
        </div>
    </body>
</html>