22件ヒット
[1-22件を表示]
(0.050秒)
検索結果
先頭2件
-
WEBrick
:: HTTPAuth :: BasicAuth . new(config , default = Config :: BasicAuth) -> WEBrick :: HTTPAuth :: BasicAuth (21325.0) -
BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。
...
BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。
config で有効なハッシュキーは以下の通りです。
:Realm =>
:UserDB =>
:Logger =>
:AutoReloadUserDB =>
realm を表す文字列 :Realm には与......ジェクトを与えます。また、:AutoReloadUserDB には
WEBrick::HTTPAuth::Htpasswd#get_passwd の
reload_db に渡す引数を与えます。
@param config 設定を保持しているハッシュを指定します。
@param default デフォルトは WEBrick::Config::BasicAuth です。... -
WEBrick
:: HTTPAuth :: BasicAuth (18024.0) -
HTTP の Basic 認証のためのクラスです。
...'s realm"
srv = WEBrick::HTTPServer.new({ :BindAddress => '127.0.0.1', :Port => 10080})
htpd = WEBrick::HTTPAuth::Htpasswd.new('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')
authenticator = WEBrick::HTTPAuth::BasicAuth.new(:UserDB => htpd, :Realm => realm)...