diff --git a/setup.py b/setup.py index 7eb00fa..65c9f33 100755 --- a/setup.py +++ b/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, ) diff --git a/src/authentic2_gnm/__init__.py b/src/authentic2_gnm/__init__.py index e2b6372..bfd6fe5 100644 --- a/src/authentic2_gnm/__init__.py +++ b/src/authentic2_gnm/__init__.py @@ -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 []