You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Arne Limburg (JIRA)" <ji...@apache.org> on 2012/11/17 22:12:11 UTC
[jira] [Created] (DELTASPIKE-291) @SecurityBindings don't respect
parameter types of @SecureParameterBinding parameters when determining the
authorization method
Arne Limburg created DELTASPIKE-291:
---------------------------------------
Summary: @SecurityBindings don't respect parameter types of @SecureParameterBinding parameters when determining the authorization method
Key: DELTASPIKE-291
URL: https://issues.apache.org/jira/browse/DELTASPIKE-291
Project: DeltaSpike
Issue Type: Bug
Components: Security-Module
Affects Versions: 0.3-incubating
Reporter: Arne Limburg
Assignee: Arne Limburg
The following beans lead to the following exception: org.apache.deltaspike.security.api.authorization.SecurityDefinitionException: Ambiguous authorizers found for security binding type
@ApplicationScoped
public class SecuredBean
{
@CustomSecurityBinding
public boolean getBlockedResult(@MockParamBinding MockObject mockObject)
{
return mockObject.isValue();
}
public boolean getResult(MockObject mockObject)
{
return mockObject.isValue();
}
}
@ApplicationScoped
public class CustomAuthorizer
{
@Secures
@CustomSecurityBinding
public boolean doSecuredCheck(@MockParamBinding MockObject obj, InvocationContext invocationContext)
throws Exception
{
return obj.isValue();
}
@Secures
@CustomSecurityBinding
public boolean doSecuredCheck(@MockParamBinding MockObject2 obj)
{
return obj.isValue();
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DELTASPIKE-291) @SecurityBindings don't respect
parameter types of @SecureParameterBinding parameters when determining the
authorization method
Posted by "Arne Limburg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arne Limburg resolved DELTASPIKE-291.
-------------------------------------
Resolution: Duplicate
> @SecurityBindings don't respect parameter types of @SecureParameterBinding parameters when determining the authorization method
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: DELTASPIKE-291
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-291
> Project: DeltaSpike
> Issue Type: Bug
> Components: Security-Module
> Affects Versions: 0.3-incubating
> Reporter: Arne Limburg
> Assignee: Arne Limburg
>
> The following beans lead to the following exception: org.apache.deltaspike.security.api.authorization.SecurityDefinitionException: Ambiguous authorizers found for security binding type
> @ApplicationScoped
> public class SecuredBean
> {
> @CustomSecurityBinding
> public boolean getBlockedResult(@MockParamBinding MockObject mockObject)
> {
> return mockObject.isValue();
> }
> public boolean getResult(MockObject mockObject)
> {
> return mockObject.isValue();
> }
> }
> @ApplicationScoped
> public class CustomAuthorizer
> {
> @Secures
> @CustomSecurityBinding
> public boolean doSecuredCheck(@MockParamBinding MockObject obj, InvocationContext invocationContext)
> throws Exception
> {
> return obj.isValue();
> }
>
> @Secures
> @CustomSecurityBinding
> public boolean doSecuredCheck(@MockParamBinding MockObject2 obj)
> {
> return obj.isValue();
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira