[jboss-jira] [JBoss JIRA] (WFLY-3988) Authorization denied for authenticated users when @PermitAll is used on EJB JAX-WS endpoint

RH Bugzilla Integration (JIRA) issues at jboss.org
Thu Jun 4 09:33:04 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13074163#comment-13074163 ] 

RH Bugzilla Integration commented on WFLY-3988:
-----------------------------------------------

Ivo Studensky <istudens at redhat.com> changed the Status of [bug 1206657|https://bugzilla.redhat.com/show_bug.cgi?id=1206657] from ASSIGNED to POST

> Authorization denied for authenticated users when @PermitAll is used on EJB JAX-WS endpoint
> -------------------------------------------------------------------------------------------
>
>                 Key: WFLY-3988
>                 URL: https://issues.jboss.org/browse/WFLY-3988
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web Services
>    Affects Versions: 8.1.0.Final
>            Reporter: Kyle Lape
>            Assignee: Jim Ma
>             Fix For: 9.0.0.Beta1
>
>
> Given this endpoint:
> {code:java}
> @Stateless
> @WebService(endpointInterface="com.redhat.gss.SecureEndpoint")
> @DeclareRoles({"a","b"})
> @WebContext(contextRoot="/endpoint",urlPattern="/e",authMethod="BASIC")
> public class SecureEndpointE implements SecureEndpoint {
>   @RolesAllowed({"a"})
>   public String a() {
>     return "Success";
>   }
>   @RolesAllowed({"b"})
>   public String b() {
>     return "Success";
>   }
>   @PermitAll
>   public String c() {
>     return "Success";
>   }
> }
> {code}
> One would expect any authenticated user to be able to invoke {{c()}}, but only users with a role found in {{@DelareRoles}} can invoke it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list