We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e8b564 commit 3d5d88bCopy full SHA for 3d5d88b
1 file changed
README.md
@@ -47,6 +47,20 @@ Assume $WIKI is the directory for your wiki.
47
48
6. You should now have working CAS authentication for your wiki!
49
50
+Proxy support and custom CAS certificate
51
+----------------------------------------
52
+Alternatively, if you need to deal with a proxy or if your CAS has
53
+a custom / self-signed certificate, you can use part of the following code in step 4. above
54
+
55
+ ```php
56
+ require_once( "$IP/extensions/CASAuth/CASAuth.php" );
57
+ phpCAS::setCasServerCACert('/path/to/ca-bundle.crt');
58
+ phpCAS::setExtraCurlOption(CURLOPT_PROXY, 'proxy.localnet');
59
+ phpCAS::setExtraCurlOption(CURLOPT_PROXYPORT, 8080);
60
+ phpCAS::setExtraCurlOption(CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
61
+ casSetup();
62
+ ```
63
64
Credits
65
-------
66
0 commit comments