jdtornow / challah

User authorization and session management in Rails.
MIT License
18 stars 7 forks source link

Calls "authenticate" twice on the technique. #12

Closed philtr closed 10 years ago

philtr commented 10 years ago

authenticate is getting called twice. Not sure why.

jdtornow commented 10 years ago

Thanks @philtr, will investigate!

jdtornow commented 10 years ago

@philtr -- I think I found the culprit. Pushed a beta version for you to test out. Let me know if that fixes your issue.

philtr commented 10 years ago

@jdtornow Didn't fix it. Still getting two requests to my authentication server.

jdtornow commented 10 years ago

@philtr ok great, send me a link to the repo and I'll test it out until I can fix it :)

philtr commented 10 years ago

@jdtornow I'm currently digging into where it's being called from. I'll let you know what I find out.

philtr commented 10 years ago

@jdtornow Found it. The current_user_session method will check to see if the parameters provided are a valid session. I was calling it before my sessions#create action, so really the session was getting created twice on my end.

Thanks for your help on this :+1: