diff --git a/src/authentic2_cut/middlewares.py b/src/authentic2_cut/middlewares.py index 13c58a5..dc45055 100644 --- a/src/authentic2_cut/middlewares.py +++ b/src/authentic2_cut/middlewares.py @@ -89,7 +89,7 @@ class CUTMiddleware(MiddlewareMixin): from django.shortcuts import render # interdit d'utiliser les IdP sur moncompte - if 'admin-cut' not in request.get_host() and request.path.startswith('/idp/'): + if 'admin-cut' not in request.get_host() and request.path.startswith('/idp/oidc/'): return render(request, 'authentic2/cut-agents-forbidden.html') # pas de pages /accounts/ sur moncompte