search for: authenticated_system

Displaying 20 results from an estimated 23 matches for "authenticated_system".

2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
...n my restful_authentication plugin: NoMethodError in RegisterController#start undefined method `authenticate_with_http_basic'' for #<RegisterController:0xb7578750> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:102:in `login_from_basic_auth'' /usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:12:in `current_user'' /usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:6:in `logged_in?'' /usr/local/apache2/htdocs/easyrx/app/controllers/ register_controller.rb:41:i...
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
...tedSystem::Base64 RAILS_ROOT: C:/railsapps/Myapp Application Trace | Framework Trace | Full Trace vendor/rails/activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'' vendor/rails/activesupport/lib/active_support/dependencies.rb:453:in `const_missing'' lib/authenticated_system.rb:126:in `get_auth_data'' lib/authenticated_system.rb:105:in `login_from_basic_auth'' lib/authenticated_system.rb:12:in `current_user'' lib/authenticated_system.rb:6:in `logged_in?'' lib/authenticated_system.rb:34:in `authorized?'' lib/authenticated_system.r...
2007 Feb 28
4
acts_as_authenticated error with Object#id
I''m getting this when I run my Rails controller specs. <projectroot>/config/../lib/authenticated_system.rb:16: warning: Object#id will be deprecated; use Object#object_id I added "include AuthenticatedTestHelper" to /spec/spec_helper.rb so that my controller tests^H^H^H^H^Hspecs can use the "login_as" helper method. Anyone know how to fix this? -- Cheers, Kevin Williams http:...
2009 Jan 12
5
Restful Authentication Uninitialized Constant in Production...
rake db:migrate RAILS_ENV=production rake aborted! uninitialized constant User::Authentication The preceding I encounter when attempting to migrate to the production database. My google powers have escaped me. Everywhere says Restful Authentication is missing in the production server. However, to validate this, I attempted this on the same server as the development, which works. So, what
2007 Aug 04
2
Modifying the restful_authentication plugin / Classes creating instances of themselves.
...it updates a last_login attribute; if it doesn''t find one, it creates one. The "remember me" functionality is also incorporated. I have incorporated these changes into the sessions controller and that is all working fine but I don''t know how to incorporate them into the authenticated_system module. Basically the authenticated_system. I suppose my question really is: Is it okay for a model class to create an instance of itself in a class method? As this is the only way I can think of keeping the http authentication that is offered by restful_authentication. Thanks, Toby --~--~-----...
2006 May 15
5
Login generator errors.
Okay, I download login generator and I used it on my new app but, it''s not working correctly. If the user logins on the same session as he created he will login if it isn''t the same session it fails. What''s going on? -- Posted via http://www.ruby-forum.com/.
2007 Jul 30
6
Object.stubs doesn''t seem to work.
Hi I''m using Mocha 0.5.3 and I want to stub out a call to Time.now, just like the example in the post http://blog.floehopper.org/articles/2007/06/08/mocha-0-5-released However, trying it in irb gets me the following error: >> require ''mocha'' => true >> Time.stubs(:now).returns(Time.parse(''Thu Feb 01 00:00:00 UTC 2007'')) NoMethodError:
2007 May 30
6
authentication mocks
hi I''m using restful_authentication and have controller specs working using users fixtures (and login_as) however i''ve been trying for hours without success to do it without fixtures, using mocks and stubs instead. anyone here done this? got code? :) thanks
2008 Apr 10
7
Facebooker and existing website?
...s. I am using acts_as_authenticated for handling login etc for my website and everytime a user is logged into my facebook app and tries to also browse the website (not through facebook), I see an error like undefined method `find_by_id'' for Facebooker::User:Class Application Trace lib/authenticated_system.rb:11:in `current_user'' lib/authenticated_system.rb:6:in `logged_in?'' app/controllers/main_controller.rb:14:in `index'' I am using sql session store for storing sessions. As I understand instead of User model, Facebooker::User model is being queried but I can''t u...
2008 Nov 06
0
Restore password without session initialized
...password is no correct, the application shows the link "Remenber password", having the route /users/remind. The problem is when a try to go to this link, appear an error like this: undefined local variable or method `new_session_path'' for #<UsersController:0x6a8cedc> lib/authenticated_system.rb:68:in `access_denied'' lib/authenticated_system.rb:65:in `access_denied'' lib/role_requirement_system.rb:116:in `access_denied'' lib/role_requirement_system.rb:121:in `check_roles'' I alredy have installed the plugin Authenticated System. The actions I have take...
2008 Jul 12
1
Re: Re stful_authentication, Internet Explorer, and unwanted http basic dialog
...or instance if you have a /users/4 URL, it will bring up > the basic authentication dialog, but /users/4.html will correctly > redirect to new_session_path. > > -J. > > On Jun 26, 2008, at 11:53 PM, Chris Bartlett wrote: > >> >> The issue is in this method of authenticated_system.rb: >> >> def access_denied >> respond_to do |format| >> format.html do >> store_location >> redirect_to new_session_path >> end >> format.any do >> request_http_basic_authentication '&...
2008 Jan 16
5
named route new_session not working
Anyone have any idea why a named route would NOT work? I did rake routes to make sure it was there and it was but for some reason new_session doesn''t work. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2007 Sep 03
13
Some basic questions
1. I have a text area in which I type on multiple lines..but when I display it, it prints whole text in one line..how can I solve that? Datatype is TEXT 2. I can see a list of all posts at ..post/ with index method but I want to see a particular post with ..post/[id] .. how can I do that? 3. I want my application to be completely secured and whatever page unlogged in user tries to open, it
2006 Jul 03
0
Fwd: Models and Backgroundrb
...gt; load ALL of rails instead of just the ActiveRecord connection. >> >> If that solves your problem, you can either, a) keep it and take >> the large memory hit for running backgroundrb with your full RAILS >> env loaded up, or b) find out what libraries (the >> authenticated_system.rb, including LogineEngine, etc.) that your >> model that you''re performing the Find on is using, and load those >> up in your backgroundrb process instead (see archive for how to do >> this, too) of the entire environment. >> >> Hope that helps! >&gt...
2006 Jun 22
1
Models and Backgroundrb
Hi Erza, I am using login engine in my code...and i get the error "uninitialized constant LoginEngine and uninitialized constant LoginEngine", when i try to do a find in the worker code!!! Why am i getting this error? -- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 22
0
Problem with change_password action in LoginEngine
...I get an undefined method error in my controller when rendering <%= error_messages_for ''user'' %>. Tracking down the issue, I found that the change_password method doesn''t retrieve the user object, and the solution is to call the user? method, from lib/login_engine/authenticated_system.rb, like this: def change_password return if generate_filled_in if user? if do_change_password_for(@user) # since sometimes we''re changing the password from within another action/template... #redirect_to :action => params[:back_to] if params[:...
2007 Feb 21
1
setting session data from a post
...n_loads_from_post_session post :new, nil, { :user => 7 } session = assigns(:session) assert_equal 7, session[:user] end My assert statement seems to be failing because my session is not showing me as being logged in. Executing break point at /Users/intention/work/idm_local/config/../lib/authenticated_system.rb:52 in `login_required'' irb(#<LinksController:0x2481fec>):001:0> session => #<ActionController::TestSession:0x24805fc @attributes={:user=>7, "flash"=>{}}, saved_attributesnil, session_id"" irb(#<LinksController:0x2481fec>):002:0> session[...
2008 Jan 17
0
It seems to be a restful_authentication bug (was Re: Re: named route new_session not working)
On 1/16/08, Jimmy Palmer <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > sorry for the ambiguity. I will work on being more descriptive. :) > > In the method access_denied in the file authenticated_system.rb from > restful athentication, it generates this: > > def access_denied > respond_to do |format| > format.html do > store_location > redirect_to new_session # <---- NOTICE > end > format.xml do > requ...
2009 Mar 18
0
uninitialized constant AuthenticatedSystem
...Firstly, there are messages about files not existing. My fix was to manually create lib and test/fixtures directories. (Remember, this is a brand new application.) Secondly, There were "uninitialized constant" messages re. AuthenticatedSystem. My fix was to add "require ''authenticated_system''" to the file where AuthenticatedSystem was included. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39U...
2009 Oct 21
0
aep_beast forum authorized? method problem?
hello I have some problem in using aep_beast forum plugin base on rails engines. Whenever I try to access forum/new page to create new forum, I meet the page containing message (You don''t have access here.). What I figure out so far through a lot of tests is the problem lying in the authenticated_system.rb When I try to access normal page which is also subject to ''before_filter :login_require'', I didn''t meet any problem page. But when I try to access the page to create new beast forum, rails seems to regard the access as unauthorized access. By debugging the page, I c...