Solved

java based web page would like to pass credentials in the url

Posted on 2010-11-22
2
479 Views
Last Modified: 2012-05-10
I have an asp.net application which someone else created and I am trying to fix.

At some point the code writes out to the browser some javascript code that pops up a window.  It is basically just a redirect to another page.  The redirect points to the java page.  When this happens, I get a popup for a username and password.  I would like to pass the username and password in the url instead.  Is this possible?  The popup dialogue seems like it is standard.  I
0
Comment
Question by:jackjohnson44
2 Comments
 
LVL 13

Accepted Solution

by:
George K. earned 250 total points
ID: 34194577
Most Probably you may have to change the javascript code that produces the pop up window.

Alternatively
you can try Basic authentication syntax in url  (if this is the case)
Something like  http://username:password@theserver/gen.ext
you may have to replace  http: with https:

or try with HTTPClient
here is a link with the relative info:http://hc.apache.org/httpclient-3.x/tutorial.html
0
 
LVL 5

Assisted Solution

by:SimonDard
SimonDard earned 250 total points
ID: 34205792
Unfortunately, basic authentication URL's do not work in IE without client side changes:
http://answers.yahoo.com/question/index?qid=20080326141232AAmdLwg

You can check the headers being sent between the browser and the server to find out which URL triggers basic authentication. I recommend livehttpheaders for firefox (http://livehttpheaders.mozdev.org/). Look for a HTTP/1.x 401 header. Once you know which URL triggers authentication, reconfigure the webserver to remove authentication.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Suggestion on WebSite Template Sites 6 108
Domino Website - Redirection 12 84
ignore other .htaccess 2 58
Redirect to catagorie in case of 404 4 22
Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question