Displaying 6 results from an estimated 6 matches for "request_http_basic_authentication".
2007 Dec 12
1
why is authenticate_with_http_basic undefined?
...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 @authenticated_user && (@user_is_viewing_themselves != false)
return true
else
request_http_basic_authentication
return false
end
end
I get a NOMETHODERROR
undefined method `request_http_basic_authentication'' for
#<OrdersController:0x478cc5c>
when i tried this url
http://localhost:3001/v1/users/permalink_for_user_1/orders
if i remove the filter , etc i can use this link which is...
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,
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
...user is not authorized
# to access the requested action. For example, a popup window
might
# simply close itself.
def access_denied
respond_to do |format|
format.html do
store_location
redirect_to new_session
end
format.xml do
request_http_basic_authentication ''Web Password''
end
end
end
# Store the URI of the current request in the session.
#
# We can return to this location by calling
#redirect_back_or_default.
def store_location
session[:return_to] = request.request_uri
end
# Redirect...
2008 Jan 17
0
It seems to be a restful_authentication bug (was Re: Re: named route new_session not working)
...stem.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
> request_http_basic_authentication ''Web Password''
> end
> end
> end
>
> Everytime I hit a ''login_required'' area of the site I get this error:
>
> undefined local variable or method `new_session'' for
> #<Admin::CategoriesController:0x18e93dc>...
2008 Jul 12
1
Re: Re stful_authentication, Internet Explorer, and unwanted http basic dialog
...s 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 ''Web Password''
>> end
>> end
>> end
>>
>> For some reason Internet Explorer is falling through to format.any -
>> something''s not quite working with its accept headers, it seems.
>> Compare:
>> http://rituonra...
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
...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''
13. return true
14. end
15. end
Then I started seeing this error whenever I accessed any action in my
controller
and also while accessing the login, logout...