C.A.S checking/detections


I need to force Nginx to detect if client have a valid CAS ticket and be
authentified to the CAS system.
This to allow or ban access to websites.
Is anybody have tried to build this infrastructure ?

I have tried the CAS Module for nginx but is seems an old module that
not support latest nginx version.

Best regards