Questions tagged [authlogic]

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

718 questions
4
votes
3 answers

authlogic and oauth-plugin

does somebody tested - will authlogic works with oauth-plugin (https://github.com/pelle/oauth-plugin) or not?
Alexey Poimtsev
  • 2,845
  • 3
  • 35
  • 63
4
votes
1 answer

How can I add the first user to a Rails application that uses Authlogic, Devise, etc.?

I have a Ruby on Rails application which I cloned from a Git repo. It requires a login to do anything, such as register a new user. There are currently no registered users so I see myself as completely locked out I know the users are stored in a…
DrYap
  • 6,525
  • 2
  • 31
  • 54
4
votes
1 answer

Active Admin + Authlogic Integration - Rails 3.2

Does anyone know how to integrate Active Admin with Authlogic (I'm using authlogic_ldap_authenticatable gem to authenticate to AD)? I know Active Admin uses Devise, so what changes should I make to Active Admin for it to work with Authlogic? …
Katie M
  • 1,111
  • 6
  • 21
  • 31
4
votes
4 answers

How can I use mock models in AuthLogic controller specs?

I am trying to write specs for a controller without using fixtures (instead employing mock models). This controller requires a user to be logged in, for which I'm employing AuthLogic, following the author's recommendations. describe UsersController…
Andres Jaan Tack
  • 22,566
  • 11
  • 59
  • 78
4
votes
2 answers

Calling a method for current_user when logging in using authlogic

I am using authlogic for authentication in my rails app. I need to be able to call a method for the current_user when they sign in but it's returning nil. In my user_sessions_controller.rb def create @user_session =…
Norto23
  • 2,249
  • 3
  • 23
  • 40
4
votes
1 answer

Authlogic current_user_session and current_user

I have the following helper methods in the application_controller.rb for authlogic: def current_user_session return @current_user_session if defined?(@current_user_session) @current_user_session = UserSession.find end def current_user return…
Jonathan
  • 10,936
  • 8
  • 64
  • 79
3
votes
1 answer

How do I test authlogic in rspec?

I can't get my tests to work and was wondering if anyone have any pointers. I am testing my user edit page such that you have to be logged in to be able to see and edit the user profile. Following the authlogic documentation, here are the relevant…
oky_sabeni
  • 7,672
  • 15
  • 65
  • 89
3
votes
1 answer

Testing Rails controllers with RSpec–How to test: current_account.projects

I'm using Rspec and Rails 3 for testing. I've tested my models and helpers but I'm lost on how to begin testing controllers. Almost all of my data in my controller actions is pulled using something like these examples: @services =…
David R
  • 328
  • 1
  • 15
3
votes
1 answer

Authlogic working via curl but not browser

This probably has as much to do with rails as authlogic, but I am pretty stuck. If I use curl to request a url as follows: curl http://neevor:l3ftcas3@localhost:3000/users/alerts/1.xml I get the desired result. However if I try to do the same using…
user102424
3
votes
1 answer

Can't get an authorized user in integration test with Rails 3.1/Authlogic/ActiveRecord session store

I am trying to write a simple integration test on a Rails 3.1 application that uses Authlogic and ActiveRecord SessionStore, but I'm hitting the wall. First, I tried a classic approach: after ensuring that require "authlogic/test_case" line is…
3
votes
1 answer

using ASIHTTPRequest on iPhone to login to webservice written in Ruby on Rails and uses AuthLogic

I have a website written in Ruby on Rails. Users can register & sign up on the website. I use AuthLogic for that I want to be able to do that using my iPhone app. It looks like ASIHTTPRequest is the best option for me to use. So, I have a few…
Ringo Blancke
  • 2,444
  • 6
  • 30
  • 54
3
votes
1 answer

Implement Google Analytics funnel for sign up with authlogic

I have a rails application for which uses authlogic for sign up. I am trying to implement a google analytics funnel to find out how many people signed up. The way authlogic works is, when a user creates an account an email is sent to him with an…
vishal
  • 279
  • 4
  • 14
3
votes
1 answer

How does authlogic save the session?

I use the plugin authlogic for my rails application (rails 2). How the data will be saved in the session via authlogic? It is safe enough? For example, if I save session[:group_id] = 1 in it, it will be saved on the client PC in a cookie? If yes,…
wabbiti
  • 35
  • 1
  • 5
3
votes
2 answers

What is the security like behind Authlogic and/or Devise in Rails?

With all this talk of Authlogic or Devise, which ones easier to install and useful etc. (Can't decide which one I like more so far.) I've just been blindly using then and assuming they both have rock-solid security. So my question is, what is the…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
3
votes
2 answers

RSpec Rails Login Filter

I recently switched started using rspec-rails(2.6.1) with my Rails(3.0.8) app. I'm used to Test::Unit, and I can't seem to get a filter working for my test methods. I like to keep things as DRY as possible, so I'd like to set up a filter that I can…
dhulihan
  • 11,053
  • 9
  • 40
  • 45