I'm attempting to implement a Single Sign On (SSO) using the Blackbaud documentation they sent to me. My client is on ColdFusion but Blackbaud's examples are all in PHP or C+. PHP is more readable (by me) so I opted to convert this code:
<?php
/* make_sso_url
* $sharedkey = the key that is specified in Sites & settings
* $username = the Blackbaud NetCommunity username to log in with
* $url = the URL of the page with the User Login part that users should be directed to
* $ip = the IP address the user should be from
* $includeip = whether or not to include ip address in the hash
*/
function make_sso_url($sharedkey,$username,$url,$ip){
$time = time();
$hashString = $sharedkey.$username.$time;
return $url."&t=".$time."&u=".$username."&m=".md5($hashString);
}
?>
Before I get to far in this process, this looks to simply be an ajax call using PHP variables. If this is the case, then I can just use ColdFusion variables, build out the URL string, use jQuery JSONP to make the domain/ajax call, get what I need from Blackbaud's system and I'm golden. Have I missed anything?