i updated the project (https://github.com/mren/java-rest-boilerplate)
with an version that injects a SecurityManager with Guice and that is
independent of an config file.
Thanks to you, Filipe, for giving me help. I hope you can use this
code in your project, too.
For the SecureResource I want to use a session less authentication via
basic auth.
But it makes no difference whether I use
curl localhost:8080/secure or curl user:password@localhost:8080/secure
I always get a UnauthenticatedException: The current Subject is not
authenticated. Access denied.
I tried to change filter("/secure/**") to filter("/secure") but there
is no difference.
When I used the ini config to set up BasicHttpAuth I got a 401
Authorization Required when accessing the url at least.
How do I set up authentication with BasicHttpAuth? Does somebody know
this problem and can give me a hint?
Mark