Jasig/phpCAS — pull request #77 by PaulSD (2013-05-23 15:40:54+00:00)
Title: Add support for X-Forwarded-Proto header in isHttps()

We have phpCAS running on a web server that is behind a reverse proxy. Clients connect to the reverse proxy using HTTPS, but the reverse proxy connects to the web server using plain HTTP. An X-Forwarded-Proto header (containing either 'http' or 'https') is added by the reverse proxy to notify the application on the web server whether the client connection used HTTP or HTTPS.

isHttps() in phpCAS currently returns 'false' in this situation. This patch updates phpCAS so that it uses the X-Forwarded-Proto header if it is available.

Thanks!