Zahi,

On 25.4.2018. 13:19, zahi.f...@gmail.com wrote:
I configured in my conf\server.xml file the realm as below:

Ok, so the configuration looks fine.

You said you are using Postman to send the request. Can you paste the `curl` command that the postman can generate for you just to check if it looks Ok?

For instance, this would be the right curl command:

  curl -u admin:falcon -X POST http://your.server/webapp/

While those are not:

curl -u admin:falco -X POST http://your.server/webapp/ (typo in password, HTTP 401)

curl -X POST http://your.server/webapp/ (no credentials specified, HTTP 401)

curl -u tomcat:s3cret -X POST http://your.server/webapp/ (wrong role, HTTP 403)

curl -u admin:falcon -X GET http://your.server/webapp/ (GET instead of POST, HTTP status code... it depends)

-Ognjen



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to