473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Authenticating to a Web Site WITHOUT the user/password popup

This problem has been challenging me for several days now.

I have a web site that uses the usual, mundane Basic Authentication.
But, now I have a request (actually, a demand) that users from a
particular, trusted subnet of my company, want to be able to have
access to the web site WITHOUT the username/password popup window
coming up. (They don't even want to type it in once and check "Keep
this Password"!) This is not a homegrown website, so I have little
or no control about the authentication process from that end.

However, I do have a plan:

I want to point those users (in that subnet) to a "phony" page. That
page would have PHP coding that would check their incoming IP address,
and, if they fall within the proper range, would GIVE them the realm,
username and password (and even the base64 encoded Authentication
string!) that they should use to request the actual page. What I
can't seem to figure out is how to set those credentials using a
client-side script like JavaScript within the browser and then force
an HTTP request of the "real" page, this time using the given
authentication and avoiding the popup login window.

Does anyone know how to do this? Or, even, is what I am trying to do
possible? Any comment and suggestions would be greatly appreciated.

Thanks,
Tom
to**@cohesion.com
Jul 23 '05 #1
3 3807
Nobody spilled the following:
This problem has been challenging me for several days now.

I have a web site that uses the usual, mundane Basic Authentication.
But, now I have a request (actually, a demand) that users from a
particular, trusted subnet of my company, want to be able to have
access to the web site WITHOUT the username/password popup window
coming up. (They don't even want to type it in once and check "Keep
this Password"!) This is not a homegrown website, so I have little
or no control about the authentication process from that end.

However, I do have a plan:


I can't say whether your plan would work, but given its objectives, it could
only be acheivable by undermining the security model built into javascript
and http. Even if it did work, the solution is likely to be limited by the
version of browser.

The problem also seems to involve a third party whose security model you are
trying to subvert - presumably without their knowledge/co-operation.

It is possible to solve the problem in a technically 'correct' manner, but
not using javascript. But that still doesn't resolve the ethical issues.

I would suggest that you begin by looking to re-implement the authentication
system with the cooperation of the website owners/developers, and only if
you've exhausted that avenue, go click on the 'Keep this password'
yourself.

C.
Jul 23 '05 #2
On Thu, 18 Nov 2004 22:38:02 GMT, Colin McKinnon
<co**********************@ntlworld.deletemeunlessU RaBot.com> wrote:
Nobody spilled the following:
This problem has been challenging me for several days now.

I have a web site that uses the usual, mundane Basic Authentication.
But, now I have a request (actually, a demand) that users from a
particular, trusted subnet of my company, want to be able to have
access to the web site WITHOUT the username/password popup window
coming up. (They don't even want to type it in once and check "Keep
this Password"!) This is not a homegrown website, so I have little
or no control about the authentication process from that end.

However, I do have a plan:


I can't say whether your plan would work, but given its objectives, it could
only be acheivable by undermining the security model built into javascript
and http. Even if it did work, the solution is likely to be limited by the
version of browser.

The problem also seems to involve a third party whose security model you are
trying to subvert - presumably without their knowledge/co-operation.

It is possible to solve the problem in a technically 'correct' manner, but
not using javascript. But that still doesn't resolve the ethical issues.

I would suggest that you begin by looking to re-implement the authentication
system with the cooperation of the website owners/developers, and only if
you've exhausted that avenue, go click on the 'Keep this password'
yourself.

C.

Just to clarify, we OWN the website, and have full control over the
usernames, passwords, etc., it's just that it is a purchased software
package that necessitates authentication via the Basic model. I speak
with the software company fairly regularly and they couldn't care less
about who we let access it and how, especially since we (once again)
own this copy of the software. So, that should allay any fears over
the ethics of what I am trying to do.

What I would like to see is if anyone has a reasonable solution to
this problem that they might want to share, or at least direct me to
where I might begin to solve it on my own. If JavaScript is not the
answer, might anything else be?

Thanks, in advance, again,
Tom
Jul 23 '05 #3
Colin McKinnon <co**********************@ntlworld.deletemeunlessU RaBot.com> wrote in message news:<ev**************@newsfe5-win.ntli.net>...
I have a web site that uses the usual, mundane Basic Authentication.
But, now I have a request (actually, a demand) that users from a
particular, trusted subnet of my company, want to be able to have
access to the web site WITHOUT the username/password popup window
coming up. (They don't even want to type it in once and check "Keep
this Password"!) This is not a homegrown website, so I have little
or no control about the authentication process from that end.


Here is what I would try:

1) trace the TCP/IP data traffic on a client to see what is being sent
to the server as the logon.

2) Make a bookmark of this data

3) Try the bookmark and see if it works

4) If the bookmark works, create a web page that automatically submits
the logon
Another idea would be to try a commercial product like:

Password Officer
- fully handles logon to web-pages
- fills in the URL, forms, clicks to buttons
- detects and fills in any program window
etc.

http://www.compelson.com/pofi.htm

Robert
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Smitro | last post by:
Hi, I'm looking for a Tutorial about Authenticating using PHP and Linux User Accounts. Can some one point me in the right direction? Smitro
9
by: Sophia | last post by:
I need to authenticate users to enter in a NTLM-protected virtual directory, but I can't pop up a NT-login dialogue box - I can only do a web-based username/password form (my client is a...
3
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 ...
4
by: Brent Waldrop | last post by:
Ok everyone, i have been pulling my hair out on this one. I have been working on it for 3 days with no sucess. This problem is occuring at home where i am running a workgroup. I have Windows 2003...
1
by: wendygt | last post by:
I have a development webserver currently running 6 asp.net web applications, a webservice, and a scheduled service that are under Integrated Windows Authentication and that carry the credentials...
2
by: Carlos | last post by:
Hi all, is there a way to perform windows authentication for an app but without having to display the authentication prompt? i.e. getting their user credentials, and allowing users form a...
4
by: teddysnips | last post by:
My clients want their employees to log in by scanning a barcode on their passes. I've set up a web page with a text box to capture the scanned barcode. Two questions. 1. Can anyone think of...
1
by: GM | last post by:
Hello, I need ideas, concepts to realize the following things: I have a service (vb.net) running on a workstation communicating with a client application. The data flow does not need to be...
1
by: giodo | last post by:
Hi ALL When we try to get an access to a secure content in a IIS with "Basic Authentication" IE shows a dialog box to set user ID and pass. After correct authentication IE (all browsers) adds a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.