Hi,
I have couple of of questions related to configuration of Shiro Annotations
and Shiro faces Tags. I know they are different subjects but it seems to me
to that most likely they are configuration issues and both related to Shiro
- hence posting them together.

I downloaded and built Shiro web, core, faces and JAspect from Shiro version
1.3.0 and added all the JAR files to my list of libraries. That's all I have
done. In both cases there are no exceptions messages.

*Shiro Tags not working:*

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:h="http://xmlns.jcp.org/jsf/html";
      xmlns:shiro="http://shiro.apache.org/tags";>
    <h:head></h:head>
    <h:body>
        <shiro:hasRole  name="ADMIN">
            Hey Admin from Shiro
        </shiro:hasRole>
    </h:body>
</html>

Not sure if there are additional configuration steps that I have missed.


*Shiro Annotations issue*

On different but related problem is that the Shiro Annotations are not
working but calling the API methods are working fine. 

    @RequiresPermissions("admin:create") //Does not work
    public String createAccount()
    {
        //Return false
        System.out.println("admin:delete" +
SecurityUtils.getSubject().isPermitted("admin:delete")); 
        return "Account created";
    }





--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Setting-up-Annotations-and-Shiro-faces-tags-tp7578964.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to