Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SSO Login for Freshdesk support portal - PHP Sample Code
function freshdesk_login_url($name, $email) {
$secret = '____Place your Single Sign On Shared Secret here_____';
$base = '';
return $base . "login/sso/?name=" . urlencode($name) . "&email=" . urlencode($email) . "&hash=" . hash('md5', $name . $email . $secret);
header("Location: " . freshdesk_login_url("John Doe", "") );

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment