るりまサーチ

最速Rubyリファレンスマニュアル検索!
180件ヒット [1-100件を表示] (0.084秒)
トップページ > クエリ:p[x] > クエリ:BasicAuth[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. matrix p
  5. rsa p

検索結果

<< 1 2 > >>

WEBrick::HTTPAuth::BasicAuth (21006.0)

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

...TP の 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', 'supersecretp...
...ass')

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 # http://127.0.0.1:10080/basic_auth...

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

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

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

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

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

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

WEBrick::HTTPAuth::ProxyBasicAuth (12000.0)

プロクシの Basic 認証のためのクラスです。

プロクシの Basic 認証のためのクラスです。

webrick/httpauth/basicauth (12000.0)

HTTP の Basic 認証のためのライブラリです。

...HTTP の Basic 認証のためのライブラリです。...

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

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

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

@param config 設定を保持して...
...いるハッシュを指定します。

@param default デフォルトは WEBrick::Config::BasicAuth です。...

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

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

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

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

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

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

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

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

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

...WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを返します。...
<< 1 2 > >>