Giter VIP home page Giter VIP logo

restful-authentication's People

Contributors

andrew avatar barrym avatar bjhess avatar bryan-ash avatar bscofield avatar codafoo avatar ggoodale avatar gramos avatar jicksta avatar johnmunsch avatar kamal avatar kentonwhite avatar lightcap avatar mhennemeyer avatar mrduncan avatar nbibler avatar oboxodo avatar redmar avatar romanbsd avatar satish avatar technoweenie avatar zaach 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

restful-authentication's Issues

Installation switches don't work properly

Specifying --aasm doesn't have the same affect as --stateful or --include-activation, they have to be specified manually for the correct code to be generated.

Additionally, even when specifying all three, no 'state' or 'deleted_at' columns are being generated in the users table (as in the base plugin). They should be created as follows:
add_column :users, :state, :string, :null => :no, :default => 'passive'
add_column :users, :deleted_at, :datetime

Configuration: new Rails app; Windows XP, Ruby 1.9.2p0 (Windows installer), Rails 3.0.0 (via gem install rails), RSpec 2 (installed according to http://github.com/rspec/rspec) , AASM 2.1.7 (via gem install aasm)

Gem list

aasm (2.1.7)
abstract (1.0.0)
actionmailer (3.0.0)
actionpack (3.0.0)
activemodel (3.0.0)
activerecord (3.0.0)
activeresource (3.0.0)
activesupport (3.0.0)
arel (1.0.1)
builder (2.1.2)
bundler (1.0.0)
diff-lcs (1.1.2)
erubis (2.6.6)
gemcutter (0.6.1)
i18n (0.4.1)
mail (2.2.5)
mime-types (1.16)
minitest (1.6.0)
polyglot (0.3.1)
rack (1.2.1)
rack-mount (0.6.13)
rack-test (0.5.4)
rails (3.0.0)
railties (3.0.0)
rake (0.8.7)
rdoc (2.5.8)
rspec (2.0.0.beta.20)
rspec-core (2.0.0.beta.20)
rspec-expectations (2.0.0.beta.20)
rspec-mocks (2.0.0.beta.20)
rspec-rails (2.0.0.beta.20)
sqlite3-ruby (1.3.1 x86-mingw32)
thor (0.14.0)
treetop (1.4.8)
tzinfo (0.3.23)

Unknown encoding: mule-utf-8

Hi,

I am getting the following error when I try to boot my rails3 app with your plugin installed:

vendor/plugins/restful-authentication/lib/authentication/by_cookie_token.rb:1: unknown encoding name: mule-utf-8 (ArgumentError)

It seems ruby 1.9.2.rc2 does not support that encoding and the line

# -*- coding: mule-utf-8 -*-

should be changed to

# -*- coding: utf-8 -*-

as discussed here

Thanks and greetings
Lars

Plugin not found: ["git://github.com/Satish/restful-authentication.git", "restful_authentication"]

rails plugin install git://github.com/Satish/restful-authenticat
Initialized empty Git repository in C:/project/RailsApplication1/vendor/plugins/restful-authenticati
github.com[0: 207.97.227.239]: errno=No such file or directory
fatal: unable to connect a socket (No such file or directory)
Plugin not found: ["git://github.com/Satish/restful-authentication.git", "restful_authentication"]

uninitialized constant ApplicationController::AuthenticatedSystem

I am experiencing an error when using this build.

"Routing Error
uninitialized constant ApplicationController::AuthenticatedSystem"

In the application_controller.rb file, I have written "include AuthenticatedSystem".

Do I need to modify anything to get it working? Thanks.

installation problem

hi,

i have a problem with rails3 and restful-authentication
i have installed the plugin and run 'rails g authenticated user sessions'

then restart server and the passanger put this error-message:

Error message:
uninitialized constant SessionsController::AuthenticatedSystem
Exc....

sry, have found in closed issus

rspec 2 on Rails 3 - access_control_spec.rb issues

I've had testing the rspec because I'm on rspec 2 I assume. Here are some of my issues:

1.) "include AuthenticatedSystem" needs to be included
2.) in the "before" statement where they add routes the old way was "ActionController::Routing::Routes.add_route /login_is_required', :controller => 'access_control_test', :action => 'login_is_required'"

INSTEAD USE
begin
_routes = Savingsgame::Application.routes
_routes.disable_clear_and_finalize = true
_routes.clear!
Savingsgame::Application.routes_reloader.paths.each{ |path| load(path) }
_routes.draw do
# here you can add any route you want
get "/login_not_required", :to => "access_control_test#login_not_required"
get "/login_is_required", :to => "access_control_test#login_is_required"
end
ActiveSupport.on_load(:action_controller) { _routes.finalize! }
ensure
_routes.disable_clear_and_finalize = false
end
3.) Because I'm using rspec 2, I need to change all the route_for, params_for and has_text, but those are easy, just look up the https://github.com/rspec/rspec-rails

Rails 3.0 RC1

Not sure what the issue is,

ActionController::RoutingError (uninitialized constant ApplicationController::AuthenticatedSystem):
app/controllers/application_controller.rb:3:in <class:ApplicationController>' app/controllers/application_controller.rb:1:in<top (required)>'
app/controllers/home_controller.rb:1:in `<top (required)>'

seems not to be able to find
class ApplicationController < ActionController::Base

AuthenticatedSystem

include AuthenticatedSystem

Huge memory hole with restful_auth in Rails 3

I'm experiencing a huge memory leak issue in Rails 3.0.4 and 3.0.5. Both on WEBrick and Apache Passenger 3.0.3, both on OS X and Linux (Debian Lenny), using Ruby 1.8.7.

I had a Rails 2.3.10 application running with restful_auth, and upgraded it to 3.0.4. This is when the leak started. See also http://stackoverflow.com/questions/5369623/tracing-memory-leak-in-ruby-on-rails-3-postgres-apache-passenger-application.

class ApplicationController < ActionController::Base
  include AuthenticatedSystem
  include RoleRequirementSystem
  ...
end

With these two includes, "ab -n 1000 -c1" (Apachebench, 1000 requests) will make my WEBrick process grow from 60 MB to about 600-800 MB. This also happens in tests, because of the fact that the tests won't run when I don't use the above includes in test_helper.rb. (Why not?)

Without these two includes, the same apachebench will only make it grow about 20MB.

I suspect the two included modules are somehow implicitly preloading User, and doing this again on every request. User is (in my case) the object which should be authenticable, and fairly large, with about 50 associations; it probably triggers another heap of objects being preloaded.

Is there a way to avoid this behaviour?

Thanks!

Could not find gem 'rubyist-aasm (>= 0, runtime)' in any of the gem sources.

Hi:

I am trying restful-authentication with aasm under Rails 3. But after after add "gem 'rubyist-aasm', :require => 'aasm'" to Gemfile, I can't get into rails console. Always saying:

rails console
Could not find gem 'rubyist-aasm (>= 0, runtime)' in any of the gem sources.
Try running bundle install.
bundle install
Fetching source index for http://rubygems.org/
Could not find gem 'rubyist-aasm (>= 0, runtime)' in any of the gem sources.

Without using rubyist-aasm, the console will say:

Loading development environment (Rails 3.0.1)

User
NoMethodError: undefined method `acts_as_state_machine' for #Class:0x1033be0d0

Any clue for this problem?

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.