[MacRuby] #988: Unable to get rack::basic::auth to function as demonstrated via sinatra page.
MacRuby
ruby-noreply at macosforge.org
Wed Nov 3 17:32:19 PDT 2010
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra
page.
------------------------------+---------------------------------------------
Reporter: jhamor@… | Owner: joshua.ballanco@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: ControlTower | Keywords:
------------------------------+---------------------------------------------
While following the sinatra docs, i've tried all the possible combinations
to get rack::basic::auth to function. When i use regular ruby-1.9 and
sinatra 1.1.0 and rack 1.2.1, all seems well. When i switch back to
macruby 0.7/controltower 1.0, i get a endless cycling of the basic
authentication boxes and auth.credentials is some weird utf-8 string.
Not really sure where to file this bug or what details are needed for
reproduction, other than following the basic auth example for rack.
Below works on ruby-1.9.2-p0/sinatra/rack:
use Rack::Auth::Basic do |username, password|
puts "user: #{username} pass: #{password}"
username == 'admin' && password == 'secret'
end
Where this same example does not work on macruby/controltower.
--
Ticket URL: <http://www.macruby.org/trac/ticket/988>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list