# File lib/rack/auth/basic.rb, line 15
15:       def call(env)
16:         auth = Basic::Request.new(env)
17: 
18:         return unauthorized unless auth.provided?
19: 
20:         return bad_request unless auth.basic?
21: 
22:         if valid?(auth)
23:           env['REMOTE_USER'] = auth.username
24: 
25:           return @app.call(env)
26:         end
27: 
28:         unauthorized
29:       end