Code Monkey home page Code Monkey logo

authlogic_bundle's People

Contributors

msimkins avatar rmoriz avatar tsechingho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

authlogic_bundle's Issues

MissingTemplate when OpenID login fails

An OpenID log in will end in "ActionView::MissingTemplate (Missing template user_sessions/create.erb" if the OpenID service is not available: "[OPENID] No usable OpenID services were found for..."

Password Reset for not activated users: Authorization::NotAuthorized...

If a 'passive' user tries to reset her password the following error will occur:

authorization.rb:149:in 'permit!'
Authorization::NotAuthorized (No matching rules found for update for #<User id: ...

Why not allow only activated users to reset passwords (rather than modify the rules)? Something like:

POST /password_resets

def create
@user = User.find(:first, :conditions => ["email = ? AND state = ?", params[:email], 'active'])

code converter not found (ISO-8859-1 to UTF8-MAC)

Hi

I'm on Mac OS and I can create a new project. Here is the error I have:

[...]
Unpacking objects: 100% (13/13), done.
From git://github.com/rails/ssl_requirement

  • branch HEAD -> FETCH_HEAD
    plugin i18n_label
    Unpacking objects: 100% (17/17), done.
    From git://github.com/iain/i18n_label
  • branch HEAD -> FETCH_HEAD
    generating migration
    file db/migrate/20091018115900_create_users.rb
    code converter not found (ISO-8859-1 to UTF8-MAC)

undefined method `add_acts_as_authentic_module' for ActiveRecord::Base:Class (NoMethodError)

Hi,
this seems to me a great pice of code actually ..., anyway any attempt to insall the template, either for a new or for an existing rails application, fails whith : undefined method error for `add_acts_as_authentic_module' :

...
...
file_append config/initializers/session_store.rb
gem stffn-declarative_authorization
gem ruby-openid
gem authlogic-oid
gem authlogic
gem bcrypt-ruby
rake gems:install
rake aborted!
undefined method `add_acts_as_authentic_module' for ActiveRecord::Base:Class

(See full trace by running task with --trace)
plugin open_id_authentication
fatal: Not a git repository
plugin ssl_requirement
fatal: Not a git repository
plugin i18n_label
fatal: Not a git repository
generating migration
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:1964:in method_missing': undefined methodadd_acts_as_authentic_module' for ActiveRecord::Base:Class (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/acts_as_authentic.rb:12:in included' from /usr/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/acts_as_authentic.rb:10:inclass_eval'
from /usr/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/acts_as_authentic.rb:10:in included' from /usr/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid.rb:5:ininclude'
from /usr/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid.rb:5:in send' from /usr/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid.rb:5 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:inrequire'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/gem_dependency.rb:179:in load' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:inload_gems'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in each' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:inload_gems'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:167:in process' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:insend'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in run' from /var/rails/authlogic_bundle/config/environment.rb:9 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/generate.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from script/generate:3 file rake aborted! /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails_generator/generators/applications/app/template_runner.rb:47:indirname': can't convert nil into String

bye luca

users index: show, edit, destroy links

I'm not sure but
filter_access_to :show, :edit, :update, :attribute_check => true, :load_method => :current_user
and
<%= link_to t('common.actions.show'), user %>
doesn't work for me. My show links in /users looks like /user/zoran but my login in DB is Zoran not zoran - should the user name be case sensitive in that link? However, even when I change my login to zoran I always get the root's profile page and not zoran's.

I tried a pragmatic workaround:
def show
@user = User.find_by_login(params[:id])
end
and
<%= link_to t('common.actions.show'), user_path(user.login) %>
Well, that works but I don't think I should do that?!

authlogic and declarative_authorization

Maybe, should use after_persisting callback in user_session.rb model instead of before_save :set_current_user_for_model_security in user model?

In your case, can't manage user object by other( admin privilege ).

see "persisting?" in Authlogic::Session::Persistence::InstanceMethods

OpenID Problems

Hi,

after a clean installation via the authlogic_bundle template - I can't log in with an openid.

in the user_sessions/new.html.erb it looks like the @user_session.openid_identifier is always empty:

style="display: none;"<% end %>>

=> form field displayed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.