Solved

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

Posted on 2010-11-22
2
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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