-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpCAS does not return https url service #178
Comments
The _isHttps() function also checks the HTTP_X_FORWARDED_PROTO header. It should detect a loadbalancer using https and adjust any urls accordingly. Maybe you can add some phpCAS::trace() debug functions in the _isHttps() function to dump states into the debug log and figure out why it's not working for you. |
Hi, I think you are right. It seems the problem is Dokuwiki which replace https to http. regards, |
I am not sure anymore... I should use phpCAS::trace() debug to get more information. Regards, |
Hello, Good news I set up my reverse proxy Apache like that :
The missing directive was :
My full virtual host for apologizes |
Hello,
I am using phpCAS to CASsify dokuwiki.
My Dokuwiki is running under Apache 2.4 and behind a reverse proxy Apache 2.4 , something like that :
https://dokuwiki.domain.tld -> http://dokuwiki.domain.local
When I enable phpCAS auth I go to :
https://dokuwiki.domain.tld/doku.php?id=start&do=caslogin
which redirect to my CAS server but the cas client.php does not serve the good protocol URL.
The url service which is return is always under http protocol :
So I found a workaround by modifying client.php at line 3481 in the getURL function :
by adding a single 's' like that :
So my question is simple : how to get the right protocol service ?
Did I miss anything ?
Regards,
The text was updated successfully, but these errors were encountered: