RailsCasts Pro episodes are now free!

Learn more or hide this

Sangam Gupta's Profile

GitHub User: sangamgupta85

Site: http://in.linkedin.com/in/sangamgupta/

Comments by Sangam Gupta

Avatar

Hi there!

I am trying to authenticate using warden for JSON based APIs(web services), I have defined my password strategy inside config/initializers as password_strategy.rb which has authenticate! method defined inside it. When I call this authenticate! method from sessions controller's create method, params inside authenticate! method are getting empty some how although I can see my params inside create method of sessions controller, not sure what magic is happening behind the scene.

Since my params are empty my authentication is detected as unauthorized and I am redirected to sessions new method for logging in again even my login credentials are correct.

Any help would be appreciated.

Thanks in advance.