auth via params API Access with Authlogic

Authlogic, my current favorite Ruby-based authentication library and I were in a fight the last couple of days.

I was trying to add token-based, auth_via_params, authentication (vs. login and password) to a project – but Authlogic and I weren’t agreeing on how it should be done.

I had assumed:

@person_session = => params[:token] )

Instead Authlogic wanted me to give it a Person first.

@person_session =[:token]))

One thought on “auth via params API Access with Authlogic

  1. Hi, did you solve this problem with Authlogic and single access token? When i was investigating i find a method persist_by_params but this method is private.

    Thank you!

Comments are closed.