search for: authenticate_with_http_basic

Displaying 6 results from an estimated 6 matches for "authenticate_with_http_basic".

2007 Dec 12
1
why is authenticate_with_http_basic undefined?
...2.6 i wanted to check for authenticated user so i wrote this in my application.rb # Filters before_filter :authenticate # Sets @authenticated_user if the user provides valid # credentials. May be used to deny access or customise the view def authenticate @authenticated_user = nil authenticate_with_http_basic do |user, pass| @authenticated_user = User.authenticate(user, pass) end return true end #Filter for actions that _require_ authentication. Unless client authenticated # as some user, takes over the request and sends a response code of 401. def must_authenticate if @authen...
2008 Sep 30
0
undefined method `authenticate_with_http_basic' for #<SessionsController:0xb6c47c44>
..... i done it and the " include AuthenticatedSystem " line added to the application.rb file... now i created the new migration tasks and created the controller when i need to access the link '' http://localhost:3000/session '' it is throwing the exception undefined method `authenticate_with_http_basic'' for #<SessionsController:0xb6c47c44> I changed the rails version and tried (2.0.1) and i reloded the authentication in the application.. and tried in many ways but i can''t find the solution Can Anybody Please help me regarding this error.. where i am doing worng... --~--~...
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
...--include-dependencies Need to update 16 gems from http://gems.rubyforge.org ................ complete Successfully installed rails-2.0.2 [root@remandev easyrx]# But I''m getting this error in 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:1...
2008 Mar 14
1
how do I get a older version of restful_authentication
...unning rails 1.2.6 and I''ve got the new restful_authentication running, unfortunately, the new version of the plugin does not support the older rails very well. how can I get an older version of restful_authentication (pre rails 2.0.2)? I''m getting this error: undefined method `authenticate_with_http_basic'' when I put "include AuthenticatedSystem" in the app controller. -- 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...
2009 Jan 13
0
optional authentication and HTTP Basic
Hi all, I have an app that originally only supported form-based authentication, and showed pared-down content to unauthenticated users. I then layered on HTTP Basic authentication using authenticate_with_http_basic, which worked fine for scripts like LWP/ wget/curl. However, some web browsers refuse to submit credentials in the URL (eg. http://username:password-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org) since they never get a challenge (401) response, since authentication is purely optional. This is a bigger p...
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
...tion plugin combined with the built-in http_basic authentication Rails 2.0.2 The following code in my controller seemed to work fine, 1. before_filter :authenticate 2. 3. def authenticate 4. case request.format 5. when Mime::XML, Mime::ATOM 6. if user = authenticate_with_http_basic { |name, pass| User.authenticate(name, pass) } 7. @current_user = user 8. else 9. request_http_basic_authentication 10. end 11. else 12. login_required if action_name != ''index''...