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'), )
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'), ]
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'), )
def urls(self): from django.conf.urls import url, patterns return patterns('', url(r'^$', provider_for_django(GreetingProvider())) )
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)), )
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)), )
def urls(self): from django.conf.urls import url, patterns return patterns( '', url(r'^$', provider_for_django(GreetingProvider())), )