[ 
https://issues.apache.org/jira/browse/SHIRO-314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maria Jurcovicova updated SHIRO-314:
------------------------------------

    Attachment: securedAnnotationAuthorizingExpressionLanguage.patch

Patch solves the issue. It changes two sub-projects shiro-aspectj and 
shiro-core. 

shiro-aspectj:
* changed pointcut to catch new @Secured annotation,
* added unit test for @Secured annotation.

shiro-core:
* added authorizing expression grammar file 
(/shiro-core/src/main/antlr3/org/apache/shiro/expressions/parser/AuthorizingExpressions.g),
* added ANTLR dependency and plugins to pom.xml,
* added @Secured annotation, its interceptor and handler,
* added authorization expression language parser and interpreter 
(org.apache.shiro.expressions package),
* added unit tests for parser and interpreter.

Authorization expression language is described in @Secured annotation javadoc.

> Authorization ANTLR Grammar
> ---------------------------
>
>                 Key: SHIRO-314
>                 URL: https://issues.apache.org/jira/browse/SHIRO-314
>             Project: Shiro
>          Issue Type: New Feature
>          Components: Authorization (access control) 
>            Reporter: Maria Jurcovicova
>            Assignee: Les Hazlewood
>         Attachments: GrammarDemoProofOfConcept.rar, 
> securedAnnotationAuthorizingExpressionLanguage.patch
>
>
> Create a single annotation that would translate the expression into the 
> relevant hasRole/isPermitted calls. 
> Details are on wiki 
> https://cwiki.apache.org/confluence/display/SHIRO/Version+2+Brainstorming#Version2Brainstorming-AuthorizationANTLRGrammar
>  . 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to