    # File lib/action_controller/vendor/rack-1.0/rack/auth/basic.rb, line 15
          def call(env)
            auth = Basic::Request.new(env)

            return unauthorized unless auth.provided?

            return bad_request unless auth.basic?

            if valid?(auth)
              env['REMOTE_USER'] = auth.username

              return @app.call(env)
            end

            unauthorized
          end