[
https://issues.apache.org/jira/browse/EXTCDI-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek resolved EXTCDI-59.
------------------------------------
Fix Version/s: 1.0.0-SNAPSHOT
Resolution: Fixed
> @Secured for secured actions and beans
> --------------------------------------
>
> Key: EXTCDI-59
> URL: https://issues.apache.org/jira/browse/EXTCDI-59
> Project: MyFaces CODI
> Issue Type: New Feature
> Components: Core, JEE-JSF12-Module, JEE-JSF20-Module
> Reporter: Gerhard Petracek
> Fix For: 1.0.0-SNAPSHOT
>
>
> via an interceptor it should be possible to create custom AccessDecisionVoter
> impelmentation/s which check/s the permission to the target method.
> example 1:
> @Named
> @RequestScoped
> public class SecuredPage1
> {
> @Secured(LoginVoter.class)
> public String order()
> {
> //...
> }
> }
> register a default error page via the view-config approach:
> @Page
> public class Login implements DefaultErrorPage
> {
> }
> ... leads to /login.xhtml as error-page.
> example 2 (class level usage and special error page for this bean):
> @Named
> @RequestScoped
> @Secured(value = LoginVoter.class, errorPage=SpecialErrorPage.class)
> public class SecuredPage2
> {
> public String order()
> {
> //...
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.