Questions tagged [authlogic]

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

718 questions
7
votes
1 answer

Configuring authlogic-oauth with google

I am trying to learn rails, and I'm working on an app that uses Google for logins and also for calendar data. I'm currently working on configuring authlogic-oauth and having some issues. I've been following the guide for the authlogic-oauth (see…
Zak
  • 377
  • 1
  • 5
  • 14
7
votes
4 answers

Authlogic throwing errors on Heroku

Yes, I've read this. This is what I'm getting in my production.log: ActionView::TemplateError (undefined method `password' for #) on line #11 of app/views/users/new.html.erb: 8:

9:

10: <%=…

user225643
  • 3,601
  • 5
  • 27
  • 22
7
votes
1 answer

Authlogic accessing user id in session object

I was wondering if anyone knows how I can access the user ID from the session object in Rails using the Authlogic gem ? I have a sweeper that runs to expire a cache fragment specific to a user: def expire_cache_for(record) …
Andrew Cetinic
  • 2,805
  • 29
  • 44
6
votes
2 answers

Rails 3 Devise grinds to halt with more encryption "stretches"

Whenever I put config.stretches = 20 in config/initializers/devise.rb, the server times out on encryption requests. The reposnse time is bearable at 15 stretches, then rapidly increases as I raise stretches value, and becomes totally unusable at 19.…
punund
  • 4,321
  • 3
  • 34
  • 45
6
votes
1 answer

type mismatch: String given - Trying to match strings in ruby

I am using authlogic-connect in Rails. I am using a simple haml template where i dont want to show the authorization providers who are already added. %h2 My Account %form.authentication_form{:action => connect_path, :method => :post} %fieldset …
Arc
  • 1,680
  • 6
  • 30
  • 57
6
votes
2 answers

How can I get authlogic to use the Rails session instead of its own cookie?

I would like authogic to never set a user_credentials cookie, and only use the standard Rails session cookie. I see Session is included in Authlogic::Session::Session::Base after Cookies. If I log into my app and then delete the user_credentials…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
6
votes
1 answer

AuthLogic perishable_token resets on every request

In my User model I have: acts_as_authentic do |c| c.perishable_token_valid_for = 30.minutes end In my Application Controller I have the standard boilerplate code: def current_user_session return @current_user_session if…
go minimal
  • 1,693
  • 5
  • 25
  • 42
6
votes
2 answers

Ruby on rails - Authlogic : periodically check if user session is valid

I'm looking for a solution allowing me to check periodically if the user session has expired and if so redirect him to the login page. I'm using Authlogic gem, so what I'm doing is call a function that make a test on current_user. My…
Mathieu
  • 1,175
  • 4
  • 19
  • 34
6
votes
2 answers

validating password format in Authlogic

Is there a way to get Authlogic to validate the format of a password, for instance must contain at least one letter and at least one number? The omission of a validates_format_of_password_options method to be used in the acts_as_authentic config…
hynkle
  • 301
  • 4
  • 6
6
votes
2 answers

Why does my session expire when using PerformanceTest and not IntegrationTest?

OK, I am writing performance tests and am having trouble getting my session to persist like it does in integration tests. As I understand it, PerformanceTest is a child of IntegrationTest and any integration tests should work with performance test.…
6
votes
1 answer

The Authlogic record method. What does this do

I came across this method called record that Ryan bates uses in his authlogic Railscast and can't seem to understand what it does. I have been through the documentation but I can't seem to follow how that helper is useful. def current_user return…
Sid
  • 6,134
  • 9
  • 34
  • 57
6
votes
3 answers

how can i authenticate users out of rails with authlogic?

In my system, users registering via rails website. I have to authenticate users from a custom application server written in ruby. error messsage: You must activate the Authlogic::Session::Base.controller with a controller object before creating…
airy
  • 571
  • 6
  • 8
6
votes
1 answer

How do I impersonate a user with AuthLogic

I need to be able to create a UserSession without having the decrypted password. How do I go about doing this? My current workaround is: In user.rb def valid_crypted_or_non_crypted_password?(password) valid_password?(password) || password ==…
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
6
votes
4 answers

Using Facebook Connect with Authlogic

I am trying to make Authlogic and Facebook Connect (using Facebook) play nice so that you can create an account either the normal registration way or with Facebook connect. I have been able to get the connect to work one way but logging out only…
Alex
5
votes
2 answers

Rails: Authorization with Authlogic

I need a very granular authorization system that works seamlessly with Authlogic. I've tried these gems/plugins so far: Lockdown rails_authorization_plugin ACL9 I've also looked at, but not tried implementing: Padlock I've searched around for a…
neezer
  • 19,720
  • 33
  • 121
  • 220
1 2
3
47 48