This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
authentic2-idp-ltpa/authentic2_idp_ltpa/middleware.py

9 lines
232 B
Python

from . import views
class LTPAMiddleware(object):
def process_response(self, request, response):
if not 'logout' in request.path:
views.add_ltpa_token_to_response(request, response)
return response