1 Reply Latest reply on Apr 7, 2015 12:53 PM by Pedro Igor

    authorization for multiple roles

    Rick Schumeyer Newbie

      I have a path that I want multiple roles to be able to access:

       

      SecurityConfigurationBuilder builder = event.getBuilder();

       

        builder

        .http()

        .forPath("/api/*")

        .withMethod(HttpMethod.GET, HttpMethod.POST, HttpMethod.PUT)

        .authorizeWith()

        .role("user", "admin")

       

      It looks like the behavior is that you must have both user AND admin to access.

       

      Is there a way to specify user OR admin?