• Post Reply Bookmark Topic Watch Topic
  • New Topic

authentication dialog box on the client side (squid like)  RSS feed

 
Shailesh Shinde
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are developing a proxy server in java.
Each client will be given an account with username , password and his web history will be

stored in the account so that content filtering and caching can be provided .

we have the code for client to our proxy server and our proxy to main server communication .

But we don't know how to provide authentication .

Whenever a client want to access the internet , a dialog should appear to him asking for

username and password just as squid does.

How to invoke a authentication dialog box on the client side when the client wants to

connect to the internet.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I don't know how squid looks like by like you said "authentication dialog box". Use Swing to pop up a JDialog window, add some JTextFields for username and password (JPasswordField), some buttons and volia - you got your form.

The next thing is once users click "OK" then what? I guess that's what you need to think about too.

If you are not familar with Swing, check out the Swing tutorial.
 
Shailesh Shinde
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have already designed the dialog box but we are able to send it to the client machine over the network .
That is the main concern .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!