Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3988

Authorization denied for authenticated users when @PermitAll is used on EJB JAX-WS endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.0.0.Beta1
    • 8.1.0.Final
    • Web Services
    • None

    Description

      Given this endpoint:

      @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";
        }
      }
      

      One would expect any authenticated user to be able to invoke c(), but only users with a role found in @DelareRoles can invoke it.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-ema Jim Ma
              rh-ee-klape Kyle Lape
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: