Ahh, thanks for that.  Let me confer with the lead dev for this project and we'll see if we can get this squared away.  

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 


On Fri, Jun 30, 2017 at 9:02 PM, Stuart Douglas <sdouglas@redhat.com> wrote:
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/io/undertow/servlet/test/security/basic/ServletBasicAuthTestCase.java#L89

Stuart

On Sat, Jul 1, 2017 at 9:04 AM, Brad Wood <bdw429s@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/SecurityManager.java#L24
>
> 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@coldbox.org
> ColdBox Platform: http://www.coldbox.org
> Blog: http://www.codersrevolution.com
>
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev