misc: add authentic2 plugin class (#62849)

This commit is contained in:
Paul Marillonnet 2022-03-23 14:54:26 +01:00
parent ee677c5234
commit 2e5dd01147
2 changed files with 22 additions and 0 deletions

View File

@ -59,6 +59,11 @@ setup(
install_requires=[
'authentic2',
],
entry_points={
'authentic2.plugin': [
'authentic2-gnm = authentic2_gnm:Plugin',
],
},
cmdclass={'sdist': eo_sdist},
zip_safe=False,
)

View File

@ -38,3 +38,20 @@ class AppConfig(django.apps.AppConfig):
default_app_config = 'authentic2_gnm.AppConfig'
class Plugin:
def get_before_urls(self):
return []
def get_apps(self):
return [__name__]
def get_authentication_backends(self):
return []
def get_auth_frontends(self):
return []
def get_after_middleware(self):
return []