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