Hello,

I'm attemping to use the Apache Shiro integration as seen here:

https://github.com/apache/aries-jax-rs-whiteboard/tree/master/integrations/shiro

I'm using a simple endpoint as follows:

  @GET
  @Produces(MediaType.TEXT_PLAIN)
  @Path("/authenticated")
  @RequiresAuthentication
  public String authenticated() {
    return "Welcome " + SecurityUtils.getSubject().getPrincipal().toString();
  }

It looks like it sets up a base.path/security/authenticate endpoint.

I have a few questions:

1.) How can I change this endpoint for authentication?
2.) Initially there are no configured realms, it was not clear to me how
I would use like a shiro.ini file.
3.) How do I use the Realm in Karaf for user authentication? Is this
something I setup in the shiro.ini once 2.) is solved? Or is there
another way?
4.) Is it possible to use Java EE annotations like @DeclareRoles etc?

I think an example of how to set this up would be really helpful.

-- 
Chaz

Reply via email to