Skip to content

Instantly share code, notes, and snippets.

View jasonhildebrand's full-sized avatar

Jason Hildebrand jasonhildebrand

View GitHub Profile
@jasonhildebrand
jasonhildebrand / freshdesk-sso.py
Last active January 8, 2023 05:45 — forked from pbertera/freshdesk-sso.py
Freshdesk Single sign-on in Python
import time
import hashlib
import hmac
import urllib
def get_sso_url(email, name, base_url, key, redirect_url=None, phone=None, company=None):
"""This function returns the Freshdesk SSO URL.
email - the name of the user you are logging in to freshdesk. Does not need an existing account in freshdesk,
as it will be created on-the-fly if necessary.