Provides ColdFusion connectivity to Slate Authentication Service using CAS
Built by Jason Quatrino for Hamilton College on 8/28/2017 based on Slate CAS Authentication Documentation found at:
Instructions:
- Save CAS-auth.cfc to your working copy.
- Open file and update "slateEndpoint" variable to use your secure (SSL) Slate domain, e.g.: "https://admission.mycollege.edu/". Include trailing slash.
- Update "cfc.path.to.auth" below to your CFC path.
- Authenticate as follows:
<cfset request.slateCASAuth = createObject("component","cfc.path.to.auth").authUser() />
authUser() returns a ColdFusion Struct containing "isAuth" boolean, "msg" string, and raw "slateData" results struct containing metadata about the authenticated user. Take a look at the results by dumping them:
Enjoy!