Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-292

@SecurityBindings don't respect parameter types of @SecureParameterBinding parameters when determining the authorization method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3-incubating
    • 0.4
    • Security-Module
    • None

    Description

      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(); }

      }

      Attachments

        Issue Links

          Activity

            People

              arne Arne Limburg
              arne Arne Limburg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: