Skip to content

Instantly share code, notes, and snippets.

@collegeman
Created July 23, 2010 12:18
Show Gist options
  • Save collegeman/487371 to your computer and use it in GitHub Desktop.
Save collegeman/487371 to your computer and use it in GitHub Desktop.
<!--- establish parameters --->
<CFSET username = "bob" />
<CFSET public_key = "FT39JK3F" />
<CFSET private_key = "fj39dfjki302kjdf99j3lkdf902j389a" />
<!--- epoch expressed in seconds --->
<CFSET timestamp = round( (now().getTime()+getTimeZoneInfo().utcTotalOffset) / 1000) />
<CFSET to_hash = username & public_key & private_key & timestamp />
<!--- md5 hashsum of username and keys --->
<CFSET hashsum = lcase(hash(to_hash)) />
<!--- SSO url --->
<CFSET sso_url = "https://ourpublicservice.org/fedexperience/signon/" & username & "/" & public_key & "/" & timestamp & "/" & hashsum />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment