るりまサーチ (Ruby 3.0)

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

別のキーワード

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

検索結果

WEBrick::HTTPAuth::Authenticator#realm -> String (63304.0)

レルムを返します。

レルムを返します。

WEBrick::HTTPAuth::BasicAuth (109.0)

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

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



require 'webrick'
realm = "WEBrick'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 =...