Displaying 5 results from an estimated 5 matches for "httpauthent".
2007 Oct 22
0
ActionController::HttpAuthentication and MySQL
Has anyone a example how to authenticate against
users stored in a MySQL-Database?
--
Jochen Kaechelin
railswerk.de, gissmoh.de, figgfrosch.de, ror-ror.de
--~--~---------~--~----~------------~-------~--~----~
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
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
I am using restful_Authentication 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,
2007 Dec 23
1
multiple scenarios problem
...;].should == "401 Unauthorized"
end
end
Scenario "user authenticates so the page should return 200" do
Given "a user"; end
When "visiting", "working_page" do |page|
get page, nil, :authorization =>
ActionController::HttpAuthentication::Basic.encode_credentials("name",
"pass")
end
Then "I''m logged in" do
response.should be_success
end
end
What happens is that the second scenario''s response is also returning
401 and if I switch the order of the tw...
2010 Jul 08
4
testing authentication with basic_auth
hi, I''ve got an api which is using
authenticate_or_request_with_http_basic
What are you guys using to test this? I''m using rspec, and before I
was using rspec-rails, I was using authorize from Rack::Test to do the
authentication. However, authorize clearly doesn''t work when using
rspec-rails, so I''m wondering what everyone else is doing?
--
You received this
2009 Dec 02
1
so RoR does not support http BASIC authentication out of the box? is this correct?
Hi,
Just confirming, so RoR does not support http BASIC authentication out
of the box? is this correct?
thanks
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to