authn: Set the renderer attribute when registering settings view.
This commit is contained in:
parent
f5e91a6406
commit
409eef8c0d
6 changed files with 12 additions and 0 deletions
|
|
@ -197,12 +197,14 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
|
|||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_get',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='GET',
|
||||
route_name='auth_home',
|
||||
context=CrowdAuthnResource)
|
||||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_post',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='POST',
|
||||
route_name='auth_home',
|
||||
context=CrowdAuthnResource)
|
||||
|
|
|
|||
|
|
@ -83,12 +83,14 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
|
|||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_get',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='GET',
|
||||
route_name='auth_home',
|
||||
context=HeadersAuthnResource)
|
||||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_post',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='POST',
|
||||
route_name='auth_home',
|
||||
context=HeadersAuthnResource)
|
||||
|
|
|
|||
|
|
@ -74,12 +74,14 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
|
|||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_get',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='GET',
|
||||
route_name='auth_home',
|
||||
context=JasigCasAuthnResource)
|
||||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_post',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='POST',
|
||||
route_name='auth_home',
|
||||
context=JasigCasAuthnResource)
|
||||
|
|
|
|||
|
|
@ -328,12 +328,14 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
|
|||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_get',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='GET',
|
||||
route_name='auth_home',
|
||||
context=LdapAuthnResource)
|
||||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_post',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='POST',
|
||||
route_name='auth_home',
|
||||
context=LdapAuthnResource)
|
||||
|
|
|
|||
|
|
@ -82,12 +82,14 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
|
|||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_get',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='GET',
|
||||
route_name='auth_home',
|
||||
context=PamAuthnResource)
|
||||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_post',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='POST',
|
||||
route_name='auth_home',
|
||||
context=PamAuthnResource)
|
||||
|
|
|
|||
|
|
@ -52,12 +52,14 @@ class RhodeCodeAuthPlugin(RhodeCodeAuthPluginBase):
|
|||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_get',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='GET',
|
||||
route_name='auth_home',
|
||||
context=RhodecodeAuthnResource)
|
||||
config.add_view(
|
||||
'rhodecode.authentication.views.AuthnPluginViewBase',
|
||||
attr='settings_post',
|
||||
renderer='rhodecode:templates/admin/auth/plugin_settings.html',
|
||||
request_method='POST',
|
||||
route_name='auth_home',
|
||||
context=RhodecodeAuthnResource)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue