Implementation de sso
This commit is contained in:
35
SIRH/urls.py
35
SIRH/urls.py
@@ -16,17 +16,30 @@ Including another URLconf
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from django.conf.urls.static import static
|
||||
# from django.conf.urls.static import static
|
||||
from django.conf import settings
|
||||
# from simple_sso.sso_server.server import Server
|
||||
|
||||
from . import views
|
||||
from .sso import SIRHClient
|
||||
|
||||
# server_sso = Server()
|
||||
client_sirh = SIRHClient(
|
||||
settings.SSO_SERVER,
|
||||
settings.SSO_PUBLIC_KEY,
|
||||
settings.SSO_PRIVATE_KEY
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
urlpatterns = [
|
||||
# path('login/',
|
||||
# views.login_view,
|
||||
# name='login'
|
||||
# ),
|
||||
# path(
|
||||
# 'deconnexion/',
|
||||
# views.deconnexion_view,
|
||||
# name='deconnexion'
|
||||
# ),
|
||||
path(
|
||||
'',
|
||||
<<<<<<< HEAD
|
||||
views.login_view,
|
||||
name='index'
|
||||
),
|
||||
@@ -42,6 +55,8 @@ urlpatterns = [
|
||||
),
|
||||
path(
|
||||
'gestion-employe/',
|
||||
=======
|
||||
>>>>>>> 4934b42 (Implementation de sso)
|
||||
include("gestion_employe.urls")
|
||||
),
|
||||
path(
|
||||
@@ -59,9 +74,7 @@ urlpatterns = [
|
||||
path(
|
||||
'admin/',
|
||||
admin.site.urls
|
||||
),
|
||||
# path(
|
||||
# 'sso',
|
||||
# include(server_sso.get_urls())
|
||||
# )
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
),
|
||||
path("client/", include(client_sirh.get_urls())),
|
||||
]
|
||||
# + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
Reference in New Issue
Block a user