るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
14件ヒット [1-14件を表示] (0.152秒)
トップページ > バージョン:2.7.0[x] > クエリ:WEBrick::HTTPAuth::BasicAuth[x]

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::pkey::ec::group
  4. new openssl::x509::certificate
  5. start net::smtp

検索結果

WEBrick::HTTPAuth::BasicAuth (69019.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 =...

WEBrick::HTTPAuth::BasicAuth.new(config, default = Config::BasicAuth) -> WEBrick::HTTPAuth::BasicAuth (63304.0)

BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。

BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。

config で有効なハッシュキーは以下の通りです。

:Realm =>
:UserDB =>
:Logger =>
:AutoReloadUserDB =>

realm を表す文字列 :Realm には与えます。:UserDB
には WEBrick::HTTPAuth::Htpasswd オブジェクトを与えます。:Logger には
ロガーオブジェクトを与えます。また、:AutoReloadUserDB には
WEBrick...

WEBrick::HTTPAuth::BasicAuth#authenticate(request, response) -> bool (63001.0)

クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。

クライアントから送られてきたユーザ名とパスワードを認証します。
認証に失敗した場合は challenge を呼びます。

@param request WEBrick::HTTPRequest のインスタンスを指定します。

@param response WEBrick::HTTPResponse のインスタンスを指定します。

@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。

WEBrick::HTTPAuth::BasicAuth#challenge(request, response) -> () (63001.0)

クライアントにパスワードを要求するためにレスポンスに WWW-Authenticate ヘッダを 設定し、例外 WEBrick::HTTPStatus::Unauthorized を投げます。

クライアントにパスワードを要求するためにレスポンスに WWW-Authenticate ヘッダを
設定し、例外 WEBrick::HTTPStatus::Unauthorized を投げます。

@raise WEBrick::HTTPStatus::Unauthorized このメソッドを呼ぶと必ず発生します。

WEBrick::HTTPAuth::BasicAuth#logger -> object (63001.0)

ロガーオブジェクトを返します。

ロガーオブジェクトを返します。

絞り込み条件を変える

WEBrick::HTTPAuth::BasicAuth#realm -> String (63001.0)

realm を文字列で返します。

realm を文字列で返します。

WEBrick::HTTPAuth::BasicAuth#userdb -> WEBrick::HTTPAuth::Htpasswd (63001.0)

ユーザ名とパスワードを保存した WEBrick::HTTPAuth::Htpasswd オブジェクトを返します。

ユーザ名とパスワードを保存した WEBrick::HTTPAuth::Htpasswd オブジェクトを返します。

WEBrick::HTTPAuth::BasicAuth.make_passwd(realm, user, pass) -> String (63001.0)

pass をランダムなソルトで crypt した文字列を返します。

pass をランダムなソルトで crypt した文字列を返します。

@param realm レルムを指定します。

@param user ユーザ名を指定します。

@param pass パスワードを指定します。

WEBrick::Config::BasicAuth -> Hash (49.0)

WEBrick::HTTPAuth::BasicAuth の設定のデフォルト値を保持したハッシュです。

WEBrick::HTTPAuth::BasicAuth の設定のデフォルト値を保持したハッシュです。

require 'webrick'
WEBrick::Config::BasicAuth = {
:AutoReloadUserDB => true,
}

WEBrick::HTTPAuth::UserDB (49.0)

WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth で使用しているモジュールです。

WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth で使用しているモジュールです。

絞り込み条件を変える

WEBrick::HTTPAuth::UserDB#auth_type -> Class (49.0)

WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを返します。

WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを返します。

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

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

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

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

WEBrick::HTTPAuth::UserDB#auth_type=(type) (19.0)

認証のタイプをセットします。

認証のタイプをセットします。

@param type WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを指定します。

WEBrick::HTTPAuth::UserDB#make_passwd(realm, user, pass) -> String (19.0)

WEBrick::HTTPAuth::UserDB#auth_type の make_passwd を呼び出します。

WEBrick::HTTPAuth::UserDB#auth_type の make_passwd を呼び出します。

@param realm レルムを指定します。

@param user ユーザ名を指定します。

@param pass パスワードを指定します。

@see WEBrick::HTTPAuth::BasicAuth#make_passwd, WEBrick::HTTPAuth::DigestAuth#make_passwd