Results 1 to 3 of 3

Thread: HTTP Basic authentication - get password entered by the user

  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Default HTTP Basic authentication - get password entered by the user

    Hi,

    I implemented Basic authentication in my web-project. When I start the application I get the basic login-form and when I use an existing user/password from the database the login is successful.

    But I have to store a user with his password, when the user doesn´t exist in the database. How do I get the password from the basic login-form?

    The user i get in UserDetails loadUserByUsername(String username) but the password? How couldt I avoid that the UsernameNotFoundException is thrown?

    Please help me.

    SaRi

  2. #2
    Join Date
    Oct 2012
    Posts
    2

    Default

    Hi,

    am I on the wrong way? Could someone please help me?

    Thanks.

  3. #3
    Join Date
    Dec 2008
    Location
    New York City
    Posts
    134

    Default

    Quote Originally Posted by SaRi View Post
    Hi,

    am I on the wrong way? Could someone please help me?

    Thanks.
    Typically this is done with a seperate form. For example a "reset password" page.
    Andrew Thompson - Linked In

Posting Permissions

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