Created
December 4, 2012 22:16
-
-
Save Geczy/4209441 to your computer and use it in GitHub Desktop.
SSO Login for Freshdesk support portal - PHP Sample Code
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
function freshdesk_login_url($name, $email) { | |
$secret = '____Place your Single Sign On Shared Secret here_____'; | |
$base = 'http://mycompany.freshdesk.me/'; | |
return $base . "login/sso/?name=" . urlencode($name) . "&email=" . urlencode($email) . "&hash=" . hash('md5', $name . $email . $secret); | |
} | |
header("Location: " . freshdesk_login_url("John Doe", "[email protected]") ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in python
http://www.abhiy.com/single-sign-on-remote-authentication-in-freshdesk-by-python/