Questions tagged [authlogic]

Authlogic is a clean, simple, and unobtrusive ruby authentication solution.

718 questions
5
votes
5 answers

what is the omniauth & email-password registration best practice?

What is the best practice for combining Facebook login (let's say I'll use Omniauth gem) and email+password login? I saw a few blogs, saw the Railscasts, I know everyone is using Devise gem with Omniauth. But I'm looking for some different…
equivalent8
  • 13,754
  • 8
  • 81
  • 109
5
votes
3 answers

authlogic not working with capybara when using the selenium driver

I have all my capybara tests working with my authlogic members area using the default driver, but when i change one test to use selenium driver as it has ajax in it, it gives my theis error : You must activate the Authlogic::Session::Base.controller…
rick
  • 463
  • 5
  • 23
5
votes
4 answers

Which Rails authentication system is better: AuthLogic, Clearance, or Devise?

I'd like to implement a third-party Ruby on Rails authentication system that is actively developed and carries sensible defaults. I've narrowed down my selection to AuthLogic and Clearance (thoughtbot) -- can anyone sway me in either direction? In…
Trent Scott
  • 2,018
  • 8
  • 34
  • 50
5
votes
0 answers

Rails GrapeAPI + Authlogic undefined method `session'

I'm trying to build an API for login using GrapeAPI and Authlogic. My code looks like this: class Api class V1 class UserSessionsController < Grape::API post :login do @user_session = UserSession.new(params[:user_session]) if…
Florin Ionce
  • 855
  • 7
  • 15
5
votes
1 answer

session generator not working for Authlogic in Rails 3.Help me out !

I installed authlogic and created a signup mechanism.And for creating a sign in mechanism I tried to generate the session controlers as below but rails 3 throws error as follows. How do I create the user_session and proceed with authlogic in rails 3…
Hemanth
  • 5,035
  • 9
  • 41
  • 59
5
votes
4 answers

Rails 3 Authlogic - 'acts_as_authentic' undefined

I'm getting the following error: NameError (undefined local variable or method `acts_as_authentic' for #): app/models/user.rb:2 app/controllers/user_controller.rb:3:in `new' I'm using Rails 3.0.0, with Ruby 1.8.7. Authlogic…
Chris
  • 51
  • 2
5
votes
1 answer

User login while testing with rspec and authlogic

I have a spec for testing a controller as below require 'spec_helper' describe ProductsController do setup :activate_authlogic describe "user not logged in" do it "should not GET index" do get :index response.should…
Rohit
  • 5,631
  • 4
  • 31
  • 59
5
votes
1 answer

Using Authlogic to authenticate with only a username

There's this mother app which is on Java (Struts), which also handles authentication. My Rails app which is being integrated into the mother app uses authlogic. Ofcourse, the requirement is, once someone logs into the mother app, they should…
Shreyas
  • 8,737
  • 7
  • 44
  • 56
5
votes
2 answers

Why I'm getting undefined method `cookies'?

I'm trying to setup Authlogic with single_access_token for my rails backend app (I'm using rails-api gem). I'm following this example: http://blog.centresource.com/2013/06/04/using-ember-auth-with-rails-3-and-authlogic/ So far, I'm able to create…
schaable
  • 73
  • 1
  • 4
5
votes
2 answers

Declarative authorization and the if_attribute not working

I've been having almost the same issues as Victor Martin (you can see the questions asked here). I've got declarative authorization working for just about everything that doesn't involve using conditionals. E.g. has_permission_on :users, :to =>…
5
votes
2 answers

Authlogic_OpenID - "uninitialized constant Rack::OpenID"

So I followed the railscast tutorial (http://railscasts.com/episodes/170-openid-with-authlogic) and used the old version of the plugin from Ryan's git file. I can now successfuly create/register a user using OpenID (Google), but I cannot log in with…
Micah Alcorn
  • 2,363
  • 2
  • 22
  • 45
5
votes
2 answers

Rails 3, Authlogic, NGINX and HTTP basic authentication no working nicely together

I am in the early stages of building an app using Rails 3. User authentication is powered by Authlogic which I have setup pretty much as standard (as per the example docs) and everything is working as expected locally. I have just deployed the app…
aaronrussell
  • 9,389
  • 5
  • 38
  • 62
5
votes
2 answers

Rails authlogic : How to make Levels?

I followed this tutorial for setting Autlogic up properly. So, my site needs a form of level, like "Admin", "Moderator", "User", "Guest". So Admins can do everything, where Moderators may not can make site changes. And Users can't destroy, Update or…
5
votes
1 answer

Authlogic admin subsite

Following this tutorial getting the following errors: NameError in Admin/dashboardsController#show uninitialized constant Admin::DashboardsController NameError in Admin sessionController#new uninitialized constant Admin::AdminHelper not sure…
MrThomas
  • 427
  • 1
  • 6
  • 19
5
votes
2 answers

Getting tripped up by verify_partial_doubles with rails 4 and rspec 3

I'm using authlogic for my user authentication and in my ApplicationController I have "current_user", "current_user_session", etc. defined and set as helper_methods. I have an extremely simple view spec for my main index: RSpec.describe…
Michael Chaney
  • 2,911
  • 19
  • 26