• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

authentication dialog box on the client side (squid like)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic