Problem while applying changed SSO

  • 4 May 2016
  • 1 reply
  • 31 views

Hi,


SSO authentication keep failing after applying change in SSO.

Recently I received email about the change about SSO. And I have applied but still keep failing. Below is changed code - I have added shared_key for hash. 

Could you check what's wrong? Or Is there any error response while login by SSO?

 

def freshdesk_sso_redirect(user):
timestamp = '%d' % (datetime.utcnow() - datetime.utcfromtimestamp(0)).total_seconds()
payload = user.full_name() + app.config['SSO']['freshdesk']['SECRET'] + user.email + timestamp
hashvalue = hmac.new(app.config['SSO']['freshdesk']['SECRET'], payload, md5).hexdigest()

return redirect(app.config['SSO']['freshdesk']['REDIRECT_URI'] + '?' + urlencode({
'name': user.full_name(),
'email': user.email,
'timestamp': timestamp,
'hash': hashvalue
}))

 



This topic has been closed for comments

1 reply

Nvm, it works now lol.. Close or delete this please