from django.conf.urls import patterns, include, url
from django.views.decorators.csrf import csrf_exempt
from oidc_provider.views import *


urlpatterns = patterns('',

    url(r'^authorize/?$', AuthorizeView.as_view(), name='authorize'),
    url(r'^token/?$', csrf_exempt(TokenView.as_view()), name='token'),
    url(r'^userinfo/?$', csrf_exempt(userinfo), name='userinfo'),
    url(r'^logout/?$', LogoutView.as_view(), name='logout'),

    url(r'^\.well-known/openid-configuration/?$', ProviderInfoView.as_view(), name='provider_info'),
    url(r'^jwks/?$', JwksView.as_view(), name='jwks'),

)

from django.conf.urls import patterns, include, url
from django.views.decorators.csrf import csrf_exempt
from oidc_provider.views import *


urlpatterns = [

    url(r'^authorize/?$', AuthorizeView.as_view(), name='authorize'),
    url(r'^token/?$', csrf_exempt(TokenView.as_view()), name='token'),
    url(r'^userinfo/?$', csrf_exempt(userinfo), name='userinfo'),
    url(r'^logout/?$', LogoutView.as_view(), name='logout'),

    url(r'^\.well-known/openid-configuration/?$', ProviderInfoView.as_view(), name='provider_info'),
    url(r'^jwks/?$', JwksView.as_view(), name='jwks'),

]

Remove patterns which will be deprecated in 1.10
Remove patterns which will be deprecated in 1.10

  from django.conf.urls import patterns, include, url
  from django.views.decorators.csrf import csrf_exempt
  from oidc_provider.views import *
  
  
- urlpatterns = patterns('',
+ urlpatterns = [
  
      url(r'^authorize/?$', AuthorizeView.as_view(), name='authorize'),
      url(r'^token/?$', csrf_exempt(TokenView.as_view()), name='token'),
      url(r'^userinfo/?$', csrf_exempt(userinfo), name='userinfo'),
      url(r'^logout/?$', LogoutView.as_view(), name='logout'),
  
      url(r'^\.well-known/openid-configuration/?$', ProviderInfoView.as_view(), name='provider_info'),
      url(r'^jwks/?$', JwksView.as_view(), name='jwks'),
  
- )
+ ]
  
Remove patterns which will be deprecated in 1.10
## Code Before:
from django.conf.urls import patterns, include, url
from django.views.decorators.csrf import csrf_exempt
from oidc_provider.views import *


urlpatterns = patterns('',

    url(r'^authorize/?$', AuthorizeView.as_view(), name='authorize'),
    url(r'^token/?$', csrf_exempt(TokenView.as_view()), name='token'),
    url(r'^userinfo/?$', csrf_exempt(userinfo), name='userinfo'),
    url(r'^logout/?$', LogoutView.as_view(), name='logout'),

    url(r'^\.well-known/openid-configuration/?$', ProviderInfoView.as_view(), name='provider_info'),
    url(r'^jwks/?$', JwksView.as_view(), name='jwks'),

)

## Instruction:
Remove patterns which will be deprecated in 1.10
## Code After:
from django.conf.urls import patterns, include, url
from django.views.decorators.csrf import csrf_exempt
from oidc_provider.views import *


urlpatterns = [

    url(r'^authorize/?$', AuthorizeView.as_view(), name='authorize'),
    url(r'^token/?$', csrf_exempt(TokenView.as_view()), name='token'),
    url(r'^userinfo/?$', csrf_exempt(userinfo), name='userinfo'),
    url(r'^logout/?$', LogoutView.as_view(), name='logout'),

    url(r'^\.well-known/openid-configuration/?$', ProviderInfoView.as_view(), name='provider_info'),
    url(r'^jwks/?$', JwksView.as_view(), name='jwks'),

]
