#114 ✓resolved
kgiszczak

authlogic-oid problem

Reported by kgiszczak | May 29th, 2009 @ 07:13 AM

Hi, I have problem with openid plugin.

I have users and admins. Users can login with openid (I have openid_identifier column in users table) and admins can't (so I don't have openid_identifier column in admins table). When I try to create admin I get error undefined method openid_identifier.

This is quick fix:

  def using_openid?
    defined?(openid_identifier) && !openid_identifier.blank?
  end

I tried also to run plugin's tests but get this error:

/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:443:in load_missing_constant': uninitialized constant ActionController (NameError)

from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:92:in `const_missing'
from ./test/../../authlogic/lib/authlogic/controller_adapters/rails_adapter.rb:38
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
 ... 9 levels...
from ./test/acts_as_authentic_test.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from -e:1</code>



Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson June 3rd, 2009 @ 03:50 AM

    • State changed from “new” to “resolved”

    I believe I fixed this issue. I have this:

    def using_openid?
              respond_to?(:openid_identifier) && !openid_identifier.blank?
            end
    

    Let me know if you still have problems. Thanks.

  • Ben Johnson

    Ben Johnson June 3rd, 2009 @ 03:50 AM

    I believe I fixed this issue. I have this:

    def using_openid?
              respond_to?(:openid_identifier) && !openid_identifier.blank?
            end
    

    Let me know if you still have problems. Thanks.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages