Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Devise ignores auth_token
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul  
View profile  
 More options Jul 17 2012, 2:48 pm
From: Paul <wayofdra...@gmail.com>
Date: Tue, 17 Jul 2012 11:48:57 -0700 (PDT)
Local: Tues, Jul 17 2012 2:48 pm
Subject: Devise ignores auth_token

Hi,

I have implemented ajax authentication using devise via auth_token and it
seems to work.  However, when I was testing unauthorized ajax calls by
changing the authorization token in the database, I was still able to make
the ajax remote call and the user is still properly identified!!  How is
this possible?  I thought that maybe the authorization token was cached in
the server so I restarted it, but same results.  It seems that Devise is
ignoring the auth_token parameter that I pass in my ajax calls, but somehow
still managed to know the user's identity.

Am I missing something?  If anyone can shine a light on this issue it would
be great!

Thanks!

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul  
View profile  
 More options Jul 17 2012, 2:50 pm
From: Paul <wayofdra...@gmail.com>
Date: Tue, 17 Jul 2012 11:50:28 -0700 (PDT)
Local: Tues, Jul 17 2012 2:50 pm
Subject: Re: Devise ignores auth_token

I am using devise 2.1.2 and dm-devise 2.1.0 if it makes any difference.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul  
View profile  
 More options Jul 17 2012, 3:15 pm
From: Paul <wayofdra...@gmail.com>
Date: Tue, 17 Jul 2012 12:15:24 -0700 (PDT)
Local: Tues, Jul 17 2012 3:15 pm
Subject: Re: Devise ignores auth_token

I figured it out.  My bad.  I was using:

skip_before_filter :verify_authenticity_token
in some controllers that I shouldn't be using, thus causing this problem.
 Still weird that it knows who the user is without the auth_token!!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »