Failed to send request to proxy due to 401

Hello,

I am currently using the confluent 7.0.1 community version on premise.
I tested the kafka rest proxy without Basic Auth enable and was able to publish a message on a topic.
Then I looked at this documentation to configure the HTTP basic auth.

Adding :

authentication.method=BASIC
authentication.realm=KafkaRest
authentication.roles=*

in kafka-rest.properties file and

created the rest-jaas.properties file within the following configuration :

KafkaRest {
    org.eclipse.jetty.jaas.spi.PropertyFileLoginModule required
    debug="true"
    file="<path-to-confluent>/etc/kafka-rest/password.properties";
};

and also created the password.properties file with the user info.

I also tested it on the browser using http://localhost:8082/topics/ and was not able to authenticate with the user/pass configured in the password.properties file.