Built by Jason Quatrino for Hamilton College on 8/25/2017 based on Slate REST Authentication Documentation found at:
Instructions:
- Save auth.cfc to your working copy.
- Open file and update "requestURL" variable to use your secure (SSL) Slate domain, e.g.: "https://admission.mycollege.edu/". Include trailing slash.
- Update "cfc.path.to.auth" to your CFC path.
- Authenticate as follows:
<cfset request.slateAuth = createObject("component","cfc.path.to.auth") .authUser(username=form.username,password=form.password) />
authUser() returns a ColdFusion Struct containing "isAuth" boolean, "msg" string, and raw "slateData" results struct.
Enjoy!