I am running CAS 7.x-1.5 On Drupal 7 with Drupal Commons. I am new to CAS, and so I need help with the configuration. My client, a higher education institution, has provided me with the following information for configuration:
Hostname
Port
URLs:
CAS Server Prefix
CAS Login URL
CAS v1 Service URL
CAS v2 Service URL
CAS v3 Service URL
CAS Logout URL
Certificates
However, I am struggling with the proper configuration. Can someone send me a link to any documentation that could walk me through properly configuring the phpCAS and Module? I understand where to place the Hostname and Port, but I cannot find anywhere to place the URLs as listed above.
Furthermore, I cannot figure out how to redirect the "Log in with CAS" link on my drupal login screen to the client's CAS Login page. Right now, the link is present because i have the "Add link to login forms" box checked, but I cannot determine where to set the destination for that link.
It would also be helpful just to see some general information on this setup, if such a thing exists.
Thanks so much in advance!
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2017-12-12 at 6.47.29 PM.png | 57.6 KB | jsensi |
Comments
Comment #2
bkosborneHi!
First, I suggest you become familiar with the CAS protocol. This document describes how the CAS server and CAS client interact with each other.
Your client has provided you with 3 different service URLs, one for each CAS version, which is good, it means they support various protocols. All you should need to do it select the CAS protocol you want to use from the CAS configuration page. You don't need to put in the URLs they gave you. All you need to know is what the base path is to their CAS server implementation. The CAS protocol dictates what the various sub-paths are from there.
For example, a CAS server may be setup as https://example.com/cas/. That means the login page for the CAS server would always be https://example.com/cas/login. All you need to do is put in the base path when configuring this module (it's labeled as "URI" in the settings page, and already defaults to /cas which is common for most CAS servers). This path may be was provided as "CAS Server Prefix" to you.
As for the login button, once you have the CAS server configured with proper info, it will automatically use the proper link to send users to login to the CAS server.
Comment #3
jsensi CreditAttribution: jsensi commentedThanks Brian, this helps. However, after following those instructions and placing the PEM file on the server, I am still unable to get the redirect to work from the Log in with CAS link. It remains a dead link even after populating the URI field. See screenshot attached. Any thoughts as to why this hasn't affected the redirect?
The info provided was:
Hostname cas.sso.ohio.edu
Port 443
CAS Server Prefix https://cas.sso.ohio.edu
Thanks,
Jason
Comment #4
bkosborneThe "URI" field should just be "/" in your case.
Comment #5
jsensi CreditAttribution: jsensi commentedThat solved the problem, thanks Brian!!
Comment #6
bkosborneGreat!