Created
July 23, 2010 12:18
-
-
Save collegeman/487371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- 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