るりまサーチ

最速Rubyリファレンスマニュアル検索!
144件ヒット [101-144件を表示] (0.021秒)
トップページ > クエリ:authenticate[x]

別のキーワード

  1. smtp authenticate
  2. imap authenticate
  3. net/smtp authenticate
  4. net/imap authenticate
  5. basicauth authenticate

検索結果

<< < 1 2 >>

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

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

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

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

WEBrick::HTTPAuth::DigestAuth#challenge(request, response, stale = false) (16.0)

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

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

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

@param response WEBrick::HTTPRe...

WEBrick::HTTPAuth::BasicAuth (6.0)

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

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

WEBrick::HTTPProxyServer.new(config, default = WEBrick::Config::HTTP) -> WEBrick::HTTPProxyServer (6.0)

プロクシオブジェクトを生成して返します。

...//emlist{
require 'webrick'
require 'webrick/httpproxy'
auth_proc = proc{|req, res|
unless c = req['proxy-authorization']
res['Proxy-Authenticate'] = 'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPPr...
<< < 1 2 >>