class Rack::Auth::Basic::Request - rack-1.6.1 Documentation

# class Rack::Auth::Basic::Request

### Public Instance Methods

basic?() click to toggle source

    # File lib/rack/auth/basic.rb, line 43
    def basic?
      "basic" == scheme
    end

credentials() click to toggle source

    # File lib/rack/auth/basic.rb, line 47
    def credentials
      @credentials ||= params.unpack("m*").first.split(/:/, 2)
    end

username() click to toggle source

    # File lib/rack/auth/basic.rb, line 51
    def username
      credentials.first
    end