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:13:39 UTC

[jira] [Resolved] (TOMEE-1559) provide a basic programmatic way to secure a webapp when using tomee embedded deploy classpath

     [ https://issues.apache.org/jira/browse/TOMEE-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved TOMEE-1559.
---------------------------------------
    Resolution: Fixed

> 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)