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-pratic/src/authentic2_pratic/middleware.py

9 lines
235 B
Python

from . import utils
class PraticAuthMiddleware(object):
"""
attempts to find a valid user based on the client certificate info
"""
def process_request(self, request):
request.ssl_info = utils.SSLInfo(request)