Skip to content

Instantly share code, notes, and snippets.

View abid-hussain's full-sized avatar

Abid Hussain abid-hussain

View GitHub Profile
@abid-hussain
abid-hussain / gist:8720578
Last active March 28, 2017 16:54
Base64 json encoding and SSO / Single Sign On integration
forumb_secret_key = "f5259ae089f1030b335cf1ef8166d568"
#//if your subdomain at some forum eg forumbee is like abc.forumbee.com then your "domain" => "abc"
params = { "domain" => "abc",
"uri" => "/sso/1/login",
"date" => (Time.now.utc.to_i*1000).to_s,
"email" => email,
"name" => name,
"key" => email
}