Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6702343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:02:35+00:00 2026-05-26T07:02:35+00:00

I started a project setting up basic authentication. I now want to switch to

  • 0

I started a project setting up basic authentication. I now want to switch to Digest Authentication. The problem is that the authentication is validated only if I provide the hash of the actual password, and not the actual password.

I did the following to switch from BASIC to DIGEST:

  1. changed in my web.xml the auth-method to DIGEST

  2. changed the JAAS context of my JDBC Realm to “jdbcDigestRealm”

  3. in my db, I used to have “password” as a password, I changed in to the result of MD5(webuser:postgres:webuser) (where webuser is the login, webuser is the password, and postgres is the realm), in other words I set the password in my table to c3c2681ed07a5a2a5cb772061a8385e8.

The problem I have is that the login popup is displayed by the browser when I try to access the resource, but using “webuser” as the password doesn’t work. However, using “c3c2681ed07a5a2a5cb772061a8385e8” as the password works. It looks like I’m still in BASIC authentication mode.

Any clue ?

Thank you !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:02:36+00:00Added an answer on May 26, 2026 at 7:02 am

    The DIGEST auth-method is same as HTTP Digest Authentication. It just encrypts the communication between the browser and the server. The server still has the password in plain text.

    From http://java.boot.by/wcd-guide/ch05s03.html:

    The difference between basic and digest authentication is that on the
    network connection between the browser and the server, the password is
    encrypted, even on a non-SSL connection. In the server, the password
    can be stored in clear text or encrypted text, which is true for all
    login methods and is independent of the choice that the application
    deployer makes.

    You should set the digest-algorithm property of your JDBC Realm to MD5. After that the JDBC Realm will hash the password.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started my project in Asp.net MVC(c#) & SQL Server 2005.I want to implement
I have a project that I have recently started working on seriously but had
I started to work on a project without setting it up for SVN .I
On a new project I have started, XCode has decided that it will compile
I currently have a recently started project in development with a 2010 target date
I have the following text: started: Project: ProjectA, Configuration: Release Any CPU ------ I
This project started as a development platform because i wanted to be able to
I've just started a project and need a little push in the right direction.
I have started a project from an XCode template I have created. When I
I already started a project, and the models are all synced and everything.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.