るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.013秒)

別のキーワード

  1. webrick/httpauth/authenticator requestfield
  2. webrick/httpauth/authenticator authexception
  3. webrick/httpauth/authenticator responsefield
  4. authenticator realm

検索結果

WEBrick::HTTPAuth::Authenticator#userdb -> WEBrick::HTTPAuth::Htpasswd | WEBrick::HTTPAuth::Htdigest (21101.0)

認証のためのユーザデータベースを返します。

認証のためのユーザデータベースを返します。

@see WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::Htdigest

WEBrick::HTTPAuth::BasicAuth (18.0)

HTTP の Basic 認証のためのクラスです。

...w('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')

authenticator
= WEBrick::HTTPAuth::BasicAuth.new(:UserDB => htpd, :Realm => realm)
srv.mount_proc('/basic_auth') {|req, res|
authenticator
.authenticate(req, res)
res.body = "hoge"
}
srv.start # htt...