Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 30, 2011 11:27 am 
Offline
Newbie

Joined: Thu Sep 02, 2010 4:16 am
Posts: 3
I am using a 3rd party to handle authentication for me (http://www.janrain.com/) but the problem is I need to lock down my development environment. I added some basic Apache mod_auth to my vhost but now my authentication is failing. I believe it is because the 3rd party sends post request which is not making it due to the HTTP authentication occurring ... ? Can anyone help me (or tell me) how to allow the POST request from the 3rd party to bypass the authentication? I am using Rails if that helps.

Apache VHost Configuration
Code:
<Directory /srv/www/dev/current/public>
      AuthType Basic
      AuthUserFile /srv/auth/.htpasswd
      AuthName "Please Authenticate ..."
      Require valid-user
</Directory>


Top
   
 Post subject:
PostPosted: Wed Mar 30, 2011 10:21 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Perhaps you could remove the password protection and use allow/deny instead. Something like...

Code:
<Location srv/www/dev/current/public>
    Order deny,allow
    Deny from all
    Allow from 192.168.0.1
    Allow from 192.168.2.2
</Location>

_________________
sleddog


Top
   
 Post subject:
PostPosted: Wed Mar 30, 2011 10:57 pm 
Offline
Newbie

Joined: Thu Sep 02, 2010 4:16 am
Posts: 3
Don't think that will make a difference. I tried adding the domain sending the POST request but that didn't work.

I believe that I have isolated the problem to Apache mod_auth adding session variables with the HTTP username. My application is trying to lookup the user but mod_auth is setting the username to the HTTP authorization username which does not exist in the database.

I posted more details here (still not resolved): http://railsforum.com/viewtopic.php?id=43504


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group