##// END OF EJS Templates
auth-plugins: expose docs and icon methods for authentication.
marcink -
r3232:683a85b0 default
parent child Browse files
Show More
@@ -171,6 +171,20 b' class RhodeCodeAuthPluginBase(object):'
171 db_type = '{}.encrypted'.format(db_type)
171 db_type = '{}.encrypted'.format(db_type)
172 return db_type
172 return db_type
173
173
174 @classmethod
175 def docs(cls):
176 """
177 Defines documentation url which helps with plugin setup
178 """
179 return ''
180
181 @classmethod
182 def icon(cls):
183 """
184 Defines ICON in SVG format for authentication method
185 """
186 return ''
187
174 def is_enabled(self):
188 def is_enabled(self):
175 """
189 """
176 Returns true if this plugin is enabled. An enabled plugin can be
190 Returns true if this plugin is enabled. An enabled plugin can be
@@ -215,6 +215,10 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
215 def get_display_name(self):
215 def get_display_name(self):
216 return _('CROWD')
216 return _('CROWD')
217
217
218 @classmethod
219 def docs(cls):
220 return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-crowd.html"
221
218 @hybrid_property
222 @hybrid_property
219 def name(self):
223 def name(self):
220 return "crowd"
224 return "crowd"
@@ -396,6 +396,10 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
396 def get_display_name(self):
396 def get_display_name(self):
397 return _('LDAP')
397 return _('LDAP')
398
398
399 @classmethod
400 def docs(cls):
401 return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-ldap.html"
402
399 @hybrid_property
403 @hybrid_property
400 def name(self):
404 def name(self):
401 return "ldap"
405 return "ldap"
@@ -97,6 +97,10 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
97 def get_display_name(self):
97 def get_display_name(self):
98 return _('PAM')
98 return _('PAM')
99
99
100 @classmethod
101 def docs(cls):
102 return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-pam.html"
103
100 @hybrid_property
104 @hybrid_property
101 def name(self):
105 def name(self):
102 return "pam"
106 return "pam"
@@ -69,6 +69,10 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
69 def get_display_name(self):
69 def get_display_name(self):
70 return _('Rhodecode Token Auth')
70 return _('Rhodecode Token Auth')
71
71
72 @classmethod
73 def docs(cls):
74 return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-token.html"
75
72 @hybrid_property
76 @hybrid_property
73 def name(self):
77 def name(self):
74 return "authtoken"
78 return "authtoken"
General Comments 0
You need to be logged in to leave comments. Login now