I am trying to write a short-form login/logout step that works with
Authlogic (2.1.6) and I cannot seem to discover how to get this to
work. Has anyone here managed to do this successfully?
I have tried this:
When /user named "(.*)" logs in/ do |login|
user = User.find_by_username( login.downcase )
@local_user_session = UserSession.create!( user )
puts( @local_user_session )
But this user session object does not seem to match what I get from
Destroying the UserSession gives the same result as the create
I then changed to the alternate syntax and used the create! method.
This indicates the root of the problem:
user = User.find_by_username!( name.hll_normalise )
puts( user.username )
@current_user_session = UserSession.create!(
:login => user.username,
:password => user.username + "-password",
:remember_me => true )
Your session is invalid and has the following errors: Username
cannot be blank (Authlogic::Session::Existence::SessionInvalidError)
user_authentication_steps.rb:175:in `/user named "(.*)" is
the user named "tester" is authenticated'
Is AuthLogic still actively supported? I do not see any activity on
the GitHub repository since the beginning of September and the issues
list seems to be getting little attention as well. If it has been
abandoned then which fork are people moving to?