Michael Spiegle
unread,Mar 10, 2012, 11:20:19 PM3/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to everyauth
I'm working on a project where a UI engineer is building out a webapp
in javascript, and my job is to provide backend services via nodejs.
I've finally got facebook and password auth working properly, but I
realized there could be issues doing the password auth with AJAX. My
UI engineer wants to just post the email/password to /login/, and get
a JSON response back with either a 'success' or 'fail', but it seems
like everyauth is designed to redirect the user instead. Is there any
way to stop the redirect from happening so I can just use a 200-OK
every time with the result in a JSON blob?