Basic Authentication with embedded Jetty 7 server and no web.xml file

我的未来我决定 提交于 2019-12-04 03:24:54
Jesper J.

I got this working and posted a sample webapp here

user1140607

The code looks broadly ok. My interface is slightly different for adding the ConstraintMapping as the single CM add seems have gone in my version of jetty 7.

securityHandler.setConstraintMappings(new ConstraintMapping[] {cm});

Bar that my code is basically identical and does work for me.

Note that once authenticated your browser will not prompt you again unless you restart your browser or follow the instructions here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!