##// END OF EJS Templates
auth-plugins: updated some code for better unicode compat.
marcink -
r3256:84d9886d default
parent child Browse files
Show More
@@ -222,7 +222,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
222 222
223 223 @hybrid_property
224 224 def name(self):
225 return "crowd"
225 return u"crowd"
226 226
227 227 def use_fake_password(self):
228 228 return True
@@ -102,7 +102,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
102 102
103 103 @hybrid_property
104 104 def name(self):
105 return 'headers'
105 return u"headers"
106 106
107 107 @property
108 108 def is_headers_auth(self):
@@ -94,7 +94,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
94 94
95 95 @hybrid_property
96 96 def name(self):
97 return "jasig-cas"
97 return u"jasig-cas"
98 98
99 99 @property
100 100 def is_headers_auth(self):
@@ -53,7 +53,7 b' class LdapError(Exception):'
53 53 pass
54 54
55 55
56 def plugin_factory(plugin_id, *args, **kwargs):
56 def plugin_factory(plugin_id, *args, **kwds):
57 57 """
58 58 Factory function that is called during plugin discovery.
59 59 It returns the plugin instance.
@@ -350,6 +350,16 b' class LdapSettingsSchema(AuthnPluginSett'
350 350 title=_('Login Attribute'),
351 351 missing_msg=_('The LDAP Login attribute of the CN must be specified'),
352 352 widget='string')
353 attr_email = colander.SchemaNode(
354 colander.String(),
355 default='',
356 description=_('LDAP Attribute to map to email address (e.g., mail).\n'
357 'Emails are a crucial part of RhodeCode. \n'
358 'If possible add a valid email attribute to ldap users.'),
359 missing='',
360 preparer=strip_whitespace,
361 title=_('Email Attribute'),
362 widget='string')
353 363 attr_firstname = colander.SchemaNode(
354 364 colander.String(),
355 365 default='',
@@ -366,16 +376,6 b' class LdapSettingsSchema(AuthnPluginSett'
366 376 preparer=strip_whitespace,
367 377 title=_('Last Name Attribute'),
368 378 widget='string')
369 attr_email = colander.SchemaNode(
370 colander.String(),
371 default='',
372 description=_('LDAP Attribute to map to email address (e.g., mail).\n'
373 'Emails are a crucial part of RhodeCode. \n'
374 'If possible add a valid email attribute to ldap users.'),
375 missing='',
376 preparer=strip_whitespace,
377 title=_('Email Attribute'),
378 widget='string')
379 379
380 380
381 381 class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
@@ -414,7 +414,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
414 414
415 415 @hybrid_property
416 416 def name(self):
417 return "ldap"
417 return u"ldap"
418 418
419 419 def use_fake_password(self):
420 420 return True
@@ -104,7 +104,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
104 104
105 105 @hybrid_property
106 106 def name(self):
107 return "pam"
107 return u"pam"
108 108
109 109 def get_settings_schema(self):
110 110 return PamSettingsSchema()
@@ -73,7 +73,7 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
73 73
74 74 @hybrid_property
75 75 def name(self):
76 return "rhodecode"
76 return u"rhodecode"
77 77
78 78 def user_activation_state(self):
79 79 def_user_perms = User.get_default_user().AuthUser().permissions['global']
@@ -76,7 +76,7 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
76 76
77 77 @hybrid_property
78 78 def name(self):
79 return "authtoken"
79 return u"authtoken"
80 80
81 81 def user_activation_state(self):
82 82 def_user_perms = User.get_default_user().AuthUser().permissions['global']
General Comments 0
You need to be logged in to leave comments. Login now