When you want to use the phpCAS functions serviceMail oder serviceWeb (for example in another module using an IMAP service) you have to initialize CAS as a proxy. This has to be done in the CAS module because the drupal service is called in background during the proxy ticket validation.
I have attached a patch that adds configuration options and calls phpCAS::proxy().
| Comment | File | Size | Author |
|---|---|---|---|
| cas_proxy.patch | 2.38 KB | acidtalks |
Comments
Comment #1
redndahead commentedComment #2
metzlerd commentedI commited this patch, but it's very difficult to test. I'd love to see some more configuration descriptions on how this is set. Maybe an EG that puts proxy tickets in a reasonable place.
I would've loved to deal with with this as tickets stored in drupal, but I'm guessing that is pretty hard.
Comment #4
bfroehle commentedI'm trying to clean up the settings form, and would like to know more about the description for CAS as proxy --
I understand what this is saying, but I have no idea why that conforms to the description in the original post.
Comment #5
bfroehle commentedI've changed the CAS proxy description to
This is descriptive about what the option entails, without mentioning other settings that are obscure and never explained.
Comment #7
zulfierken commentedI am trying to use proxy but I cannot.
I set a file for pgt and debug. debug is written but pgt.txt is not.
I receive
Error message
CAS_AuthenticationException: in CAS_Client->_validatePGT() (line 2248 of /var/www/demo/CAS/CAS/Client.php). error.
proxy ticket is not saved in file.
What I am trying to do is;
using code to retrieve a page from site B withing site A where both site A and site B use CAS module for authentication.
Help/ tutorial / guideline about using Proxy ticket (CAS) to get data from site B is really appreciated.