Пример #1
0
 def get_urls(self):
     return patterns('',
         url(r'^request-token/$', provider_for_django(
             self.request_token_provider(server=self)
         ), name='simple-sso-request-token'),
         url(r'^authorize/$', self.authorize_view.as_view(server=self), name='simple-sso-authorize'),
         url(r'^verify/$', provider_for_django(self.verification_provider(server=self)), name='simple-sso-verify'),
     )
Пример #2
0
 def get_urls(self):
     return [
         re_path(r'^request-token/$', provider_for_django(self.request_token_provider(server=self)),
                 name='simple-sso-request-token'),
         re_path(r'^authorize/$', self.authorize_view.as_view(server=self), name='simple-sso-authorize'),
         re_path(r'^verify/$', provider_for_django(
                 self.verification_provider(server=self)), name='simple-sso-verify'),
     ]
Пример #3
0
 def get_urls(self):
     return patterns(
         '',
         url(r'^request-token/$',
             provider_for_django(self.request_token_provider(server=self)),
             name='simple-sso-request-token'),
         url(r'^authorize/$',
             self.authorize_view.as_view(server=self),
             name='simple-sso-authorize'),
         url(r'^logout/$',
             self.logout_view.as_view(server=self),
             name='simple-sso-logout'),
         url(r'^verify/$',
             provider_for_django(self.verification_provider(server=self)),
             name='simple-sso-verify'),
         url(r'^is-authenticated/$',
             provider_for_django(self.authenticated_provider(server=self)),
             name='simple-sso-is-authenticated'),
     )
Пример #4
0
 def urls(self):
     from django.conf.urls import url, patterns
     return patterns('',
         url(r'^$', provider_for_django(GreetingProvider()))
     )
Пример #5
0
from django.conf.urls import patterns, include, url
from webservices.sync import provider_for_django
from api.views import HelloProvider
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', provider_for_django(HelloProvider())),
    url(r'^admin/', include(admin.site.urls)),
)
Пример #6
0
from django.conf.urls import patterns, include, url
from webservices.sync import provider_for_django
from api.views import HelloProvider
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', provider_for_django(HelloProvider())),
    url(r'^admin/', include(admin.site.urls)),
)
Пример #7
0
 def urls(self):
     from django.conf.urls import url, patterns
     return patterns(
         '',
         url(r'^$', provider_for_django(GreetingProvider())),
     )