Web アプリケーション用の Web ベースのセットアップを作成しようとしています (主にデータベースのセットアップ)。しかし、私はすべてのサーブレットに DIGEST 認証を使用しているため、問題が発生しています。ユーザーに mysql パスワードの入力を求めたいのですが、ログインできないためできません。ユーザーはデータベースに保存されているため、その時点では存在しないため、ログインする方法はありません。
<security-constraint>
<web-resource-collection>
<web-resource-name>Wildcard means whole app requires authentication</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>crm_user</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>DIGEST</auth-method>
<realm-name>tomcat_realm</realm-name>
</login-config>
ユーザーがパスワードを入力する必要がないように、単一のサーブレットのログイン構成をオーバーライドできますか?