It sounds like you are trying to use the Servlet API?
If so then you don't install the basic auth handler manually, you set
the appropriate info into DeploymentInfo and Undertow will set it up
for you.
Here is an example:
https://github.com/undertow-io/undertow/blob/master/servlet/src/test/java...
Stuart
On Sat, Jul 1, 2017 at 9:04 AM, Brad Wood <bdw429s(a)gmail.com> wrote:
Hello, I'm having troubles getting the remote_user cgi variable
when using
basic authentication. The basic auth itself seems to work fine. The
browser challenges me, I enter a user/pass, and the page loads. However
request.getRemoteUser() is returning null.
Here is the bits that are setting up the basic auth handler:
https://github.com/cfmlprojects/runwar/blob/master/src/runwar/security/Se...
I've Googled quite a bit and I can't find any guides that indicate that
anything special needs set up for remote user to be available. I also found
the exchange attribute class for remote user in Undertow, but can't find any
docs or guides at all that indicate how it is to be used or if I need to be
doing anything with it in regards to basic auth.
Can someone provide a sanity check on what is missing for the remote user to
be available?
Using Undertow 1.4.11.Final
Thanks!
~Brad
Developer Advocate
Ortus Solutions, Corp
E-mail: brad(a)coldbox.org
ColdBox Platform:
http://www.coldbox.org
Blog:
http://www.codersrevolution.com
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev