0

We are currently facing an issue while implementing basic authentication for a specific path inside a webapp context.

Our webapps have a mapped path defined in the context.xml (example: Context path="/test_web")

What we try to reach is that only the path above is secured via basic auth.

It is not possible to do it via the global web.xml (url pattern with /test_web/* does not match).

Eugène Adell
  • 3,089
  • 2
  • 18
  • 34
Tom
  • 23
  • 4
  • Please add in what you have tried in `web.xml` – ST. Kee Jul 04 '18 at 07:54
  • @ST.Kee we have tried /* -> which protects all apps globally, we have tried /test_web/* , /test_web* – Tom Jul 04 '18 at 08:12
  • Why not edit your question and add in the related code snippet. When dealing with url mapping, you normally omit the application name, e.g. `http:///app/secure-resource`, you only do `/secure-resource` not `/app/secure-resource` – ST. Kee Jul 04 '18 at 08:32

0 Answers0