diff --git a/rhodecode/authentication/base.py b/rhodecode/authentication/base.py --- a/rhodecode/authentication/base.py +++ b/rhodecode/authentication/base.py @@ -171,6 +171,20 @@ class RhodeCodeAuthPluginBase(object): db_type = '{}.encrypted'.format(db_type) return db_type + @classmethod + def docs(cls): + """ + Defines documentation url which helps with plugin setup + """ + return '' + + @classmethod + def icon(cls): + """ + Defines ICON in SVG format for authentication method + """ + return '' + def is_enabled(self): """ Returns true if this plugin is enabled. An enabled plugin can be diff --git a/rhodecode/authentication/plugins/auth_crowd.py b/rhodecode/authentication/plugins/auth_crowd.py --- a/rhodecode/authentication/plugins/auth_crowd.py +++ b/rhodecode/authentication/plugins/auth_crowd.py @@ -215,6 +215,10 @@ class RhodeCodeAuthPlugin(RhodeCodeExter def get_display_name(self): return _('CROWD') + @classmethod + def docs(cls): + return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-crowd.html" + @hybrid_property def name(self): return "crowd" diff --git a/rhodecode/authentication/plugins/auth_ldap.py b/rhodecode/authentication/plugins/auth_ldap.py --- a/rhodecode/authentication/plugins/auth_ldap.py +++ b/rhodecode/authentication/plugins/auth_ldap.py @@ -396,6 +396,10 @@ class RhodeCodeAuthPlugin(RhodeCodeExter def get_display_name(self): return _('LDAP') + @classmethod + def docs(cls): + return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-ldap.html" + @hybrid_property def name(self): return "ldap" diff --git a/rhodecode/authentication/plugins/auth_pam.py b/rhodecode/authentication/plugins/auth_pam.py --- a/rhodecode/authentication/plugins/auth_pam.py +++ b/rhodecode/authentication/plugins/auth_pam.py @@ -97,6 +97,10 @@ class RhodeCodeAuthPlugin(RhodeCodeExter def get_display_name(self): return _('PAM') + @classmethod + def docs(cls): + return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-pam.html" + @hybrid_property def name(self): return "pam" diff --git a/rhodecode/authentication/plugins/auth_token.py b/rhodecode/authentication/plugins/auth_token.py --- a/rhodecode/authentication/plugins/auth_token.py +++ b/rhodecode/authentication/plugins/auth_token.py @@ -69,6 +69,10 @@ class RhodeCodeAuthPlugin(RhodeCodeAuthP def get_display_name(self): return _('Rhodecode Token Auth') + @classmethod + def docs(cls): + return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth-token.html" + @hybrid_property def name(self): return "authtoken"