Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ Assume $WIKI is the directory for your wiki.

6. You should now have working CAS authentication for your wiki!

Proxy support and custom CAS certificate
----------------------------------------
Alternatively, if you need to deal with a proxy or if your CAS has
a custom / self-signed certificate, you can use part of the following code in step 4. above

```php
require_once( "$IP/extensions/CASAuth/CASAuth.php" );
phpCAS::setCasServerCACert('/path/to/ca-bundle.crt');
phpCAS::setExtraCurlOption(CURLOPT_PROXY, 'proxy.localnet');
phpCAS::setExtraCurlOption(CURLOPT_PROXYPORT, 8080);
phpCAS::setExtraCurlOption(CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
casSetup();
```

Credits
-------

Expand Down