Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13361

netty-http4 role based authentication not working : path-resolving issue

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 2.21.2
    • None
    • camel-netty4-http, karaf
    • None
    • Unknown

    Description

      Developed 2 REST services with netty4-http component.
      Now I want to use HTTP Basic Authentication ( in KARAF runtime)

      Edited karaf's system.properties to add roles "role1" and "role2".

      karaf.local.roles = admin,manager,viewer,systembundles,role1,role2

      Edited users.properties to add a new user1 belonging to role role1 and another user2 to role2:

      user1=user1,role1
      user2=user2,role2

      attached is bluprint.xml

      Considering port is 8081

      Service 1-> http://localhost:8081/path1 -> should be accessible to user "user1" (users having role1 only)
      Service 2-> http://localhost:8081/path2 -> should be accessible to user "user2" (users having role2 only)

      But when I hit service http://localhost:8081/path1 with username=user2 and password=user2,
      The service is accessible, this path should be inaccessible (unauthorized access)

      Attachments

        1. blueprint.xml
          2 kB
          Abdulhamid

        Activity

          People

            Unassigned Unassigned
            abdulhamid Abdulhamid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: