Urgent: mulitple Tender apps getting Mutlipass not being decrypted
We just launched our integration with customerhub.net.. as I'm sure you've been getting the notifications :)
Anyway, everything seemed to be working properly, however we are starting to see the following errors:
"The MuliPass token was not able to be decrypted"
I am using the following gem: http://github.com/entp/multipass
And here is how I implemented the multipass in our user object:
# initialize the multipass object def self.multipass(site_key, api_key) # for `yourapp.tenderapp.com`, `yourapp` is your SITE KEY @multipass ||= MultiPass.new(site_key, api_key) end # create a multipass for this user object def multipass(site_key, api_key, subdomain) m = self.class.multipass(site_key, api_key) m.encode(:email => email, :name => name, :expires => 30.minutes.from_now, :unique_id => id, :alternate_id => email, :trusted => true, :external_url => "https://#{subdomain}.customerhub.net/welcome") end
Not sure why they aren't being decoded properly.
Please help asap as I've got customers wanting to integrate.
Nathan
Discussions are closed to public comments.
If you need help with Tender please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Courtenay on May 24, 2010 @ 05:50 PM
Is your server clock running slow?
============
Courtenay
(310) 294-4026
^{0,o}'
2 Posted by nate on May 24, 2010 @ 05:52 PM
not sure.. running on Engine Yard. Do you mean the time on the server?
Support Staff 3 Posted by Courtenay on May 24, 2010 @ 06:07 PM
Does it work in the debugger?
============
Courtenay
(310) 294-4026
^{0,o}'
4 Posted by nate on May 24, 2010 @ 06:09 PM
Nope. I'm getting the same error. Not sure why... it seemed to be working when we first launched last week. But now, I'm getting that error.
5 Posted by nate on May 24, 2010 @ 06:21 PM
But when I encode and decode manually using the gem it seems to work.
example:
and then manually decode the SSO token:
It seems to decode everything properly.
Support Staff 6 Posted by Courtenay on May 24, 2010 @ 06:21 PM
Can you paste me a token and the URL of your tender instance? I'll
jump in and debug.
============
Courtenay
(310) 294-4026
^{0,o}'
7 Posted by nate on May 24, 2010 @ 06:29 PM
Sure:
I created one for a test user using our support instance
customerhub.tenderapp.com
.SSO token that was generated for the test user:
8 Posted by nate on May 24, 2010 @ 06:33 PM
Hmm... now i just tried manually decoding this one.. and I get an error:
Weird... it worked for the other user.
9 Posted by nate on May 24, 2010 @ 09:43 PM
Hi Courtenay.. any updates?
Sorry, I know you're busy.. I've got clients breathing down my neck :)
Nate
10 Posted by court3nay on May 25, 2010 @ 12:47 AM
Hey, sorry, on a cross-continental plane right now - but - do you have
a SSO token that you can run both ways (encrypt and decrypt) and that
works in the debugger?
11 Posted by nate on May 25, 2010 @ 05:02 PM
Oh ok.. sorry.
Here is one that works:
Support Staff 12 Posted by Courtenay on May 25, 2010 @ 05:07 PM
Yup, "Logged in as Nathan Leavitt from CustomerHub."
Works fine - what's the problem? :)
13 Posted by nate on May 25, 2010 @ 05:12 PM
The problem is that some SSO tokens work and others that are generated aren't, like the one I posted yesterday.
Nathan
Support Staff 14 Posted by Courtenay on May 25, 2010 @ 05:19 PM
Heh, not trying to be glib :) just attempting to reproduce the issue
consistently!
15 Posted by nate on May 25, 2010 @ 05:23 PM
Oh..yeah, I didn't mean that as harsh as it may have come off... haha.
Support Staff 16 Posted by Courtenay on May 25, 2010 @ 05:26 PM
Ah, I see.. can you generate a few that can't, and dump me all the
variables that went into it? I assume there's a character or sorting
issue in there somewhere.
17 Posted by nate on May 25, 2010 @ 05:58 PM
Hey Courtenay... I'm going to do some more debugging from my end. Something seems strange and it's probably on my end or my customers. Let me do some more testing and just double check my customers settings for their Tender instances. I'll update you if I find anything new.
Support Staff 18 Posted by Courtenay on May 25, 2010 @ 06:01 PM
OK, no prob. :)
Courtenay closed this discussion on May 25, 2010 @ 09:24 PM.