Solved

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

Posted on 2010-11-22
2
453 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This warning has to be one of the most commonly issued warnings in the history of PHP.  The article explains why this warning arises and what to do to mitigate the problem. How this Happens HTTP headers include many different kinds…
Introduction and Prerequisites This article describes methods for detecting whether a client browser accepts and returns HTTP cookies and whether the client browser runs JavaScript.  Most client browsers will, by default, be configured to use cooki…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now