Hello, the following is the hyperlink I generate via Ruby and the output looks something like this:
https://evisit.freshdesk.com/login/sso?&email=1@1.com&name=Herb Meehan×tamp=1480974001&hash=f454f15e13bb8f6aee7ba329e60b9c08
No matter what, I was always getting a Invalid time entry
and I'm taken to this url: https://evisit.freshdesk.com/login/normal
Here's a little bit of the Ruby code I have in place: Does anything stand out as bad?
def time_in_utc
Time.now.getutc.to_i.to_s
end
def url_params
"#{full_name}#{ENV['FRESHDESK_SECRET_KEY']}#{email}#{time_in_utc}"
end
def gen_hash_from_params_hash
digest = OpenSSL::Digest.new('MD5')
OpenSSL::HMAC.hexdigest(digest,ENV["FRESHDESK_SECRET_KEY"],url_params)
end
def get_link
"https://evisit.freshdesk.com/login/sso?&email=#{email}&name=#{full_name}×tamp=#{time_in_utc}&hash=#{gen_hash_from_params_hash}"
end