Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






Rails + JQGrid + OpenID problem: solved!

UserPost

01:34
31/05/2012


rickwayne

Member

posts 3

I would just reply to my own post, but it has not yet been moderated, so I'll put this in to save any would-be helpers some time.

Our story so far: My Rails application's JQGrid's POST requests were running afoul of the OpenID mechanism, as if the browser session didn't belong to this user, or they hadn't authenticated with their OpenID Identity Provider. (You'll know if you're having the same problem if the last thing the browser sees is a 401 error.)

Basically, Sante at the OpenID Code list pointed me to the forgery-protection mechanism in Rails as the culprit. Sure enough, when I turned that off it worked. Of course you can't just leave it off, but I found a very nice fix at http://henrik.nyh.se/2008/05/r…..ith-jquery which adds a handler for the ajaxSend event, ensuring that the Rails authenticity token is included with each and every Ajax request. One line in one file, seven in another, problem solved. Oh happy day! Thanks Sante and Henrik!


About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

R_A_P

TronGrid

66 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9583

Posts: 28757

Membership:

There are 10111 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (6999 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information