Results 1 to 9 of 9
  1. #1
    Mrs. Deswal's Avatar
    Mrs. Deswal is offline Member
    Join Date
    Apr 2009
    Location
    Gurgaon,India
    Posts
    24
    Rep Power
    0

    Default [SOLVED] How to do authentication

    Hi,

    Please tell me all authentication methods in java to do basic, digest, ntlm,proxy & form based authentication. I am trying to do authentication from a long time & i am not getting any information about this.

    If any one has done authentication then please send me the code & also the url on which authentication has been done.

    Thnaks in advance.
    Sharing knowledge means gaining more knowledge.:)

  2. #2
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Posts
    286
    Rep Power
    6

    Default

    I think you need to define a bit more what it is you're doing. You've listed a string of buzzwords in a slightly confused way, but haven't really explained what you're doing. If your question is essentially "how do I make a web site login system", then the standard way is:

    - set up your web server to accept HTTPS connections and buy a certificate from a company such as Thwarte. You hosting company will usually help you with this and may be able to apply for and install the certificate on your bahelf.
    - set up a web form that asks the user for a user name and password; encourage the user to access this form via the https: variant of the URL
    - make the form's action URL be to a servlet/some other script/code on your server that interprets the user name and password and does some useful thing with it: checking against a database, setting up the user if they're not there etc... (in a typical situation, the form itself may actually be generated programmatically too)

    Otherwise, I think you need to specify a bit more what exactly you're trying to do.

  3. #3
    Mrs. Deswal's Avatar
    Mrs. Deswal is offline Member
    Join Date
    Apr 2009
    Location
    Gurgaon,India
    Posts
    24
    Rep Power
    0

    Default

    Hi,

    I have made a java crawler. I want to do authentication in my crawler. I want all types of authentication in my crawler so that i will be able to access all the sites which require authentication.

    I have tried many codes from the net, but i am unable to do authentication. Please give me some code which will do authentication on a site through java programme. Please also give me the url on which that code run successfully.

    Thanks in advance.
    Sharing knowledge means gaining more knowledge.:)

  4. #4
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Posts
    286
    Rep Power
    6

    Default

    Well, this really depends on the individual site. It's impossible to give some code that will work for every site in the universe!

  5. #5
    Mrs. Deswal's Avatar
    Mrs. Deswal is offline Member
    Join Date
    Apr 2009
    Location
    Gurgaon,India
    Posts
    24
    Rep Power
    0

    Default

    Hi,

    I know this thing. But I want a single example of any type of authentication which you have tested on a site.
    Sharing knowledge means gaining more knowledge.:)

  6. #6
    Mrs. Deswal's Avatar
    Mrs. Deswal is offline Member
    Join Date
    Apr 2009
    Location
    Gurgaon,India
    Posts
    24
    Rep Power
    0

    Default

    Hi,

    Please help me in doing authentication. I want form based authentication example. It may be through post and get type.
    Sharing knowledge means gaining more knowledge.:)

  7. #7
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  8. #8
    Mrs. Deswal's Avatar
    Mrs. Deswal is offline Member
    Join Date
    Apr 2009
    Location
    Gurgaon,India
    Posts
    24
    Rep Power
    0

    Default

    Hi,
    anybody has done post form based authentication using jakarta's HttpClient library. If someone has done this, then please give me code for this.

    Thnaks in advance.
    Sharing knowledge means gaining more knowledge.:)

  9. #9
    Mrs. Deswal's Avatar
    Mrs. Deswal is offline Member
    Join Date
    Apr 2009
    Location
    Gurgaon,India
    Posts
    24
    Rep Power
    0

    Default

    hi,

    I have done both type of authentication i.e. basic and form based authentication.
    Sharing knowledge means gaining more knowledge.:)

Similar Threads

  1. IIS Authentication
    By akkarin in forum Java Applets
    Replies: 0
    Last Post: 03-30-2009, 11:35 AM
  2. Form Based Authentication
    By archmisha in forum Java Servlet
    Replies: 1
    Last Post: 02-06-2009, 10:27 AM
  3. servlet filter authentication
    By pradeepprathyu in forum Advanced Java
    Replies: 0
    Last Post: 11-22-2008, 11:10 AM
  4. SSL Server with authentication of clients
    By zoltan in forum Networking
    Replies: 0
    Last Post: 10-14-2008, 11:27 PM
  5. WiKID Strong Authentication System 3.0.7
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-16-2007, 04:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •