Yes, I have something that I did for ActiveMQ WebConsole, leveraging etc/jetty.xml.

Regards
JB

On 02/05/2016 12:45 PM, Charles Moulliard wrote:
Hi,

Do we have an example where we map Security Constraint (web.xml)


   <security-constraint>
     <web-resource-collection>
       <web-resource-name>apiman-gateway-api</web-resource-name>
       <url-pattern>/*</url-pattern>
     </web-resource-collection>
     <auth-constraint>
       <role-name>apipublisher</role-name>
     </auth-constraint>
   </security-constraint>
   <login-config>
     <auth-method>BASIC</auth-method>
     <realm-name>apiman</realm-name>
   </login-config>
   <security-role>
     <role-name>apipublisher</role-name>
   </security-role>

to the Pax Web

WebContainer.registerConstraintMapping()

Regards,

--
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
<http://cmoulliard.github.io>


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to