2022-11-27 16:39:32 +00:00
|
|
|
from django.urls import path
|
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
|
|
|
|
2017-08-22 15:33:13 +00:00
|
|
|
app_name = 'oidc_provider'
|
2016-02-02 22:57:23 +00:00
|
|
|
urlpatterns = [
|
2022-11-27 16:39:32 +00:00
|
|
|
path('authorize/', views.AuthorizeView.as_view(), name='authorize'),
|
|
|
|
path('token/', csrf_exempt(views.TokenView.as_view()), name='token'),
|
|
|
|
path('userinfo/', csrf_exempt(views.userinfo), name='userinfo'),
|
|
|
|
path('end-session/', views.EndSessionView.as_view(), name='end-session'),
|
|
|
|
path('.well-known/openid-configuration/', views.ProviderInfoView.as_view(),
|
2018-03-22 20:53:31 +00:00
|
|
|
name='provider-info'),
|
2022-11-27 16:39:32 +00:00
|
|
|
path('introspect/', views.TokenIntrospectionView.as_view(), name='token-introspection'),
|
|
|
|
path('jwks/', views.JwksView.as_view(), name='jwks'),
|
2016-02-02 22:57:23 +00:00
|
|
|
]
|
2016-10-28 18:25:52 +00:00
|
|
|
|
|
|
|
if settings.get('OIDC_SESSION_MANAGEMENT_ENABLE'):
|
|
|
|
urlpatterns += [
|
2022-11-27 16:39:32 +00:00
|
|
|
path('check-session-iframe/', views.CheckSessionIframeView.as_view(),
|
2018-03-22 20:53:31 +00:00
|
|
|
name='check-session-iframe'),
|
2016-10-28 18:25:52 +00:00
|
|
|
]
|