private Method

Authenticator.check_scheme(req)

There's no documentation for this item.

Source Code

# File webrick/httpauth/authenticator.rb, line 40
def check_scheme(req)
  unless credentials = req[@request_field]
    error("no credentials in the request.")
    return nil 
  end  
  unless match = /^#{@auth_scheme}\s+/.match(credentials)
    error("invalid scheme in %s.", credentials)
    info("%s: %s", @request_field, credentials) if $DEBUG
    return nil
  end
  return match.post_match
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.