COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS Connection => Topic started by: ub14 on 25 Mar 2011 05:48:33 AM

Title: Hide CAMUserName and CAMPassword parameter values in URL
Post by: ub14 on 25 Mar 2011 05:48:33 AM
Hi,

We have requirement to call cognos 8 reports from an application. We are passing the parametrized urls URL as below. But we would like pass the Username and Password as hidden values so that nobody can view. Is there any we can hide the Username and password while accessing the Cognos reports from different application without using SDK.

http://<servername>:<portnumber>/crn/cgi -
bin/cognos.cgi?b_action=xts.run&&CAMUsername=a dministrator&CAMPassword=admin1234&h_CAM_action=logonAs&CAMNam espace=1101
m=portal/report-viewer.xts&method=execute&m_obj=/content/packa ge
[@name='GO Sales and Retailers']/report[@name='Prod_Name_Drill_Target']

Thanks in advance
vsub
Title: Re: Hide CAMUserName and CAMPassword parameter values in URL
Post by: newmans_99 on 25 Mar 2011 07:10:46 AM
You can use the cognosLaunch() function instead. Plus using that function, you can have more characters passed as you are posting a form instead of a URL. The function is documented in the same location as the URL documentation that you are using.
Title: Re: Hide CAMUserName and CAMPassword parameter values in URL
Post by: ub14 on 25 Mar 2011 12:45:36 PM
Hi,

Thank you. How can i pass camusername and campassword in the below cognosLaunch() function.

cognosLaunch("ui.gateway","http://machine/c8/cgi-bin/cognos.cgi","m_passportID",<EM><passport_id></EM>,"ui.tool","AnalysisStudio","ui.action","edit","ui.object","/content/package[@name='GO Sales']/analysis[@name='chart']")

regards
vsub14