ruby on rails - Authentication fails with Uploadify + Paperclip + Clearance -
i have uploadify working paperclip , authentication, using this guide.
i've got past nasty invalidauthenticationtoken errors passing authentication_token , session information parameters , using middleware create cookie header them, controller authentication filter still failing , current_user not available.
has ideas why might be?
i looked through clearance plugin , seems come down user_from_cookie method, finds user based on cookies[:remember_token]
def user_from_cookie if token = cookies[:remember_token] ::user.find_by_remember_token(token) end end so i'm thinking middleware should create remember_token cookie header?
any appreciated, proving bit me!
i don't know if issue, run similar one, had setup 2 auth level, 1 basic http , 1 devise, session worked beautifully devise , all, never got around basic http... hope helps.
alex
Comments
Post a Comment