Exemplo n.º 1
0
    def get_before_urls(self):
        from . import app_settings
        from django.conf.urls import include, url
        from authentic2.decorators import setting_enabled, required

        return required((setting_enabled('ENABLE', settings=app_settings), ),
                        [url(r'^idp/cas/', include(__name__ + '.urls'))])
Exemplo n.º 2
0
    def get_before_urls(self):
        from . import app_settings
        from django.conf.urls import patterns, include
        from authentic2.decorators import setting_enabled, required

        return required(
            setting_enabled("ENABLE", settings=app_settings),
            patterns("", (r"^accounts/sslauth/", include(__name__ + ".urls"))),
        )
Exemplo n.º 3
0
    def get_before_urls(self):
        from . import app_settings
        from django.conf.urls import url, include
        from authentic2.decorators import (setting_enabled, required,
                                           lasso_required)

        return required((setting_enabled(
            'ENABLE', settings=app_settings), lasso_required()),
                        [url(r'^idp/saml2/', include(__name__ + '.urls'))])
Exemplo n.º 4
0
    def get_before_urls(self):
        from . import app_settings
        from django.conf.urls import patterns, include
        from authentic2.decorators import setting_enabled, required

        return required(
                (
                    setting_enabled('ENABLE', settings=app_settings),
                ),
                patterns('',
                    (r'^idp/cas/', include(__name__ + '.urls'))))
Exemplo n.º 5
0
from django.conf.urls import patterns, url

from authentic2.decorators import setting_enabled, required

from . import app_settings

urlpatterns = required(
        setting_enabled('ENABLE', settings=app_settings),
        patterns('',
            url('^idp/freshdesk/login/', 'authentic2_idp_freshdesk.views.authenticate',
                name='idp-freshdesk-authenticate'),
        )
)
Exemplo n.º 6
0
from django.conf.urls import patterns, url

from authentic2.decorators import setting_enabled, required

from . import app_settings
from .views import index

urlpatterns = required(
    setting_enabled("ENABLE", settings=app_settings),
    patterns("", url("^authentic2_plugin_template/$", index, name="authentic2-plugin-template-index")),
)
Exemplo n.º 7
0
from django.conf.urls import url

from authentic2.decorators import setting_enabled, required

from . import app_settings
from .views import index

urlpatterns = required(setting_enabled('ENABLE', settings=app_settings), [
    url('^authentic2_plugin_template/$',
        index,
        name='authentic2-plugin-template-index')
])