tsechingho / authlogic_bundle Goto Github PK
View Code? Open in Web Editor NEWThe authlogic/declarative_authorization based authentication/authorization system supported via engines and template of rails.
License: MIT License
The authlogic/declarative_authorization based authentication/authorization system supported via engines and template of rails.
License: MIT License
Let’s support cucumber and rspec, then happy coding.
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..."
Screen dump here:
I'm looking for clues about how to debug this.
It looks like I am missing a table named 'sessions'.
Is a migration missing?
--Dan
Hello,
this software looks good.
Here is what I see when I try to install it on my Mac:
I should be able to debug this but I would welcome any clues.
Thanks,
--Dan
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:
def create
@user = User.find(:first, :conditions => ["email = ? AND state = ?", params[:email], 'active'])
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
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 method
add_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:in
class_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:in
include'
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:in
gem_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:in
require'
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:in
load_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:in
load_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:in
send'
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:in
gem_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:in
gem_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:in
dirname': can't convert nil into String
bye luca
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?!
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
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:
=> form field displayed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.