MMBase

Property-matching with class-security.

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.6
  • Fix Version/s: 1.9.0
  • Component/s: Core, Security
  • Description:
    Hide
    It can be usefull if you can supply some extra properties to match when using class-security.

    E.g. you could want:

      <authenticate class="org\.mmbase\.tests\..*">
        <property name="rank" value="basic user" />
      </authenticate>

      <authenticate class="org\.mmbase\.tests\..*">
        <property name="username" value="admin" />
        <property name="rank" value="administrator" />
      </authenticate>


    Simply using class-security would alwyas match the first one. You would wnat to match the second one if a login info map is given where the proeprties match.
    Show
    It can be usefull if you can supply some extra properties to match when using class-security. E.g. you could want:   <authenticate class="org\.mmbase\.tests\..*">     <property name="rank" value="basic user" />   </authenticate>   <authenticate class="org\.mmbase\.tests\..*">     <property name="username" value="admin" />     <property name="rank" value="administrator" />   </authenticate> Simply using class-security would alwyas match the first one. You would wnat to match the second one if a login info map is given where the proeprties match.

Activity

Repository Revision Date User Message
MMBase SVN #31146 Wed Oct 01 18:59:05 CEST 2008 michiel MMB-1728
Files Changed
MODIFY /mmbase/trunk/src/org/mmbase/security/implementation/context/ClassLogin.java
MODIFY /mmbase/trunk/src/org/mmbase/security/implementation/basic/ClassLoginModule.java
MODIFY /mmbase/trunk/applications/cloudsecurity/src/org/mmbase/security/implementation/cloud/Authenticate.java
MODIFY /mmbase/trunk/src/org/mmbase/security/classsecurity/ClassAuthentication.java
MODIFY /mmbase/trunk/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/Authenticate.java
Repository Revision Date User Message
MMBase SVN #31149 Wed Oct 01 19:01:08 CEST 2008 michiel using MMB-1728 to provide differnt clouds for differnt tests
Files Changed
MODIFY /mmbase/trunk/tests/common/org/mmbase/tests/BridgeTest.java
MODIFY /mmbase/trunk/tests/config/security/classauthentication.xml
Repository Revision Date User Message
MMBase SVN #31152 Wed Oct 01 19:17:12 CEST 2008 michiel Test case for MMB-1728
Files Changed
MODIFY /mmbase/trunk/tests/bridge/org/mmbase/bridge/CloudTest.java
Repository Revision Date User Message
MMBase SVN #31173 Thu Oct 02 14:31:17 CEST 2008 michiel MMB-1728
Files Changed
MODIFY /mmbase/trunk/src/org/mmbase/security/classsecurity/ClassAuthentication.java

People

Dates

  • Created:
    2008-10-01 18:56
    Updated:
    2008-10-01 18:56
    Resolved:
    2008-10-01 18:56