[undertow-dev] Add basic auth programmatically

Stuart Douglas sdouglas at redhat.com
Sun Dec 11 17:58:29 EST 2016


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev



More information about the undertow-dev mailing list