django-oidc-provider/oidc_provider/urls.py

29 lines
1 KiB
Python
Raw Normal View History

2018-02-01 17:00:57 +00:00
try:
from django.urls import url
except ImportError:
from django.conf.urls import url
2014-12-19 15:27:43 +00:00
from django.views.decorators.csrf import csrf_exempt
2016-10-28 18:25:52 +00:00
from oidc_provider import (
settings,
views,
)
2014-12-19 15:27:43 +00:00
app_name = 'oidc_provider'
urlpatterns = [
url(r'^authorize/?$', views.AuthorizeView.as_view(), name='authorize'),
url(r'^token/?$', csrf_exempt(views.TokenView.as_view()), name='token'),
url(r'^userinfo/?$', csrf_exempt(views.userinfo), name='userinfo'),
2016-11-01 15:15:48 +00:00
url(r'^end-session/?$', views.EndSessionView.as_view(), name='end-session'),
2018-03-22 20:53:31 +00:00
url(r'^\.well-known/openid-configuration/?$', views.ProviderInfoView.as_view(),
name='provider-info'),
url(r'^introspect/?$', views.TokenIntrospectionView.as_view(), name='token-introspection'),
url(r'^jwks/?$', views.JwksView.as_view(), name='jwks'),
]
2016-10-28 18:25:52 +00:00
if settings.get('OIDC_SESSION_MANAGEMENT_ENABLE'):
urlpatterns += [
2018-03-22 20:53:31 +00:00
url(r'^check-session-iframe/?$', views.CheckSessionIframeView.as_view(),
name='check-session-iframe'),
2016-10-28 18:25:52 +00:00
]