Changeset 6661


Ignore:
Timestamp:
3 Sep 2011, 02:15:14 (13 years ago)
Author:
uli
Message:

Set auth plugin names as tuple instead of list to keep their order.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py

    r6478 r6661  
    276276        # The local credentials plugin is registered under the name
    277277        # 'applicant_credentials' (see above).
    278         pau.credentialsPlugins.append('applicant_credentials')
     278        plugins = list(pau.credentialsPlugins) + ['applicant_credentials']
     279        pau.credentialsPlugins = tuple(plugins)
    279280        # The local authenticator plugin is registered under the name
    280281        # 'applicants' (subject to change?)
    281         pau.authenticatorPlugins.append('applicants')
     282        plugins = list(pau.authenticatorPlugins) + ['applicants']
     283        pau.authenticatorPlugins = tuple(plugins)
     284        #pau.authenticatorPlugins.append('applicants')
    282285        return pau
    283286
  • main/waeup.sirp/trunk/src/waeup/sirp/authentication.py

    r6625 r6661  
    1919    Then looks for any external utilities that want to modify the PAU.
    2020    """
    21     pau.credentialsPlugins = ['No Challenge if Authenticated', 'credentials']
    22     pau.authenticatorPlugins = ['users']
     21    pau.credentialsPlugins = ('No Challenge if Authenticated', 'credentials')
     22    pau.authenticatorPlugins = ('users')
    2323
    2424    # Give any third-party code and subpackages a chance to modify the PAU
Note: See TracChangeset for help on using the changeset viewer.