You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2015/04/24 20:01:39 UTC
[jira] [Created] (TOMEE-1559) provide a basic programmatic way to
secure a webapp when using tomee embedded deploy classpath
Romain Manni-Bucau created TOMEE-1559:
-----------------------------------------
Summary: provide a basic programmatic way to secure a webapp when using tomee embedded deploy classpath
Key: TOMEE-1559
URL: https://issues.apache.org/jira/browse/TOMEE-1559
Project: TomEE
Issue Type: New Feature
Reporter: Romain Manni-Bucau
Assignee: Romain Manni-Bucau
Fix For: 2.0.0-Milestone-1
{code}
Container container = new Container(
new Configuration()
.user("auser", "hispwd")
.loginConfig(new LoginConfigBuilder().basic())
.securityConstaint(new SecurityConstaintBuilder().addAuthRole("**").authConstraint(true).addCollection("api", "/api/resource2/")))
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)