misc: add authentic2 plugin class (#62849)
This commit is contained in:
parent
ee677c5234
commit
2e5dd01147
5
setup.py
5
setup.py
|
@ -59,6 +59,11 @@ setup(
|
|||
install_requires=[
|
||||
'authentic2',
|
||||
],
|
||||
entry_points={
|
||||
'authentic2.plugin': [
|
||||
'authentic2-gnm = authentic2_gnm:Plugin',
|
||||
],
|
||||
},
|
||||
cmdclass={'sdist': eo_sdist},
|
||||
zip_safe=False,
|
||||
)
|
||||
|
|
|
@ -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 []
|
||||
|
|
Reference in New Issue