You should be able to just do:
deploymentInfo.setLoginConfig(new LoginConfig("my
realm").addFirstAuthMethod("BASIC"))
Stuart
On Mon, Dec 12, 2016 at 9:56 AM, Вячеслав А <slavastap(a)gmail.com> wrote:
Hello.
I have a problem with auth for web services in my jar.
I want to add BASIC auth programmatically.
I have two places: from ServletExtension and from HttpHandler for request.
I cant find the way to do it ( It will be better if i can do it from
ServletExtension by modify DeploymentInfo.
Thank you in advance for your help.
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev