Hi. I wrote python script that acts as a middleware between Pritunl and Keycloak, performing real-time user status checks during VPN connection attempts. It ensures that:
Only users who exist in Keycloak and are not blocked are allowed to access the Pritunl VPN.
Users blocked with unverified email (optional check) are denied VPN access.