Identity Token (Rails 2) and REST APIs.

Discussion in 'Ruby' started by e deleflie, Dec 2, 2008.

  1. e deleflie

    e deleflie Guest

    All,

    I've got a remote application that is used for posting data to my
    Rails 2 app. Took me about a day to realise that my posting wasn't
    working because my submitted form did not contain an identity token
    (introduced into Rails 2).

    I can remove that function (on new posts) by doing:
    protect_from_forgery :eek:nly => [:update, :destroy]

    but I'm wondering how I could keep that feature and still post from my
    client side app?

    Etienne
    e deleflie, Dec 2, 2008
    #1
    1. Advertising

  2. > I've got a remote application that is used for posting data to my
    > Rails 2 app. Took me about a day to realise that my posting wasn't
    > working because my submitted form did not contain an identity token
    > (introduced into Rails 2).
    >
    > I can remove that function (on new posts) by doing:
    > protect_from_forgery :eek:nly => [:update, :destroy]
    >
    > but I'm wondering how I could keep that feature and still post from my
    > client side app?


    Probably best asked on a Rails mailing list, as it's very specific to
    the Rails framework. This list is for the Ruby programming language.
    --
    Posted via http://www.ruby-forum.com/.
    Brian Candler, Dec 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Token of user identity

    , Apr 13, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    563
  2. Cronus
    Replies:
    1
    Views:
    658
    Paul Mensonides
    Jul 15, 2004
  3. G Fernandes
    Replies:
    1
    Views:
    523
  4. Wessi
    Replies:
    3
    Views:
    844
    Lawrence Kirby
    Aug 11, 2005
  5. =?Utf-8?B?Y2FzaGRlc2ttYWM=?=

    This is an unexpected token. The expected token is 'NAME'

    =?Utf-8?B?Y2FzaGRlc2ttYWM=?=, Jul 13, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    775
    =?Utf-8?B?Y2FzaGRlc2ttYWM=?=
    Jul 13, 2007
Loading...

Share This Page