Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Hi,

I want to hide the URL or Username and password in web.show_document.
While accessing report through form any end user can see the Username and Password in URL.
I need to hide the credentials.

SQL
DECLARE
	VPASSWORD  VARCHAR2(30);
BEGIN
	
Declare
v_show_document	VARCHAR2 (2000) := '/reports/rwservlet?';
v_connect	VARCHAR2 (200)  := 'userid=scott/tiger@test1';
v_report_server	VARCHAR2 (50)   := 'rep_tbanner';
v_report_name	VARCHAR2(100)   := '/u01/banner/inb/TEST/reports/rdf/GSTEST.rdf';
v_format	VARCHAR2(12)    := 'HTMLCSS';
   begin
	v_show_document := v_show_document
                           || v_connect
			   -- Report server
			   || '&server='
			   || v_report_server
			   -- Report name
			   || '&report='||v_report_name
			   -- Reports parameters
			   || '&destype=CACHE'
		           || '&desformat='||v_format
			   || '¶mform=no'
		           || '&ID='||:KEY_ID;
				         
	web.show_document(v_show_document);
	end;


END;

Please help.

Thanks & Regards,
Samir
Posted
Comments
Keith Barrow 22-Jul-13 6:19am    
I'm not an expert on Oracle, but I do have a few, more general comments.

Firstly: It is a bad idea from a security point of view to store your passwords in either plain text or so they can be unencrypted. *If you can*, consider using a hashing algorithm where the original password cannot be retrieved but can be tested against. (Google "password hash" and you'll get a fuller explanation of what I mean.

Secondly: Even if the URL is secured on the wire using https, passing sensitive information still isn't a good idea (for starters servers normally log incoming request URLs including the password in your case) see http://blog.httpwatch.com/2009/02/20/how-secure-are-query-strings-over-https/ for a better explaination.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900