From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/http/headers/www-authenticate/index.html | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 files/ja/web/http/headers/www-authenticate/index.html (limited to 'files/ja/web/http/headers/www-authenticate') diff --git a/files/ja/web/http/headers/www-authenticate/index.html b/files/ja/web/http/headers/www-authenticate/index.html new file mode 100644 index 0000000000..16213e54e1 --- /dev/null +++ b/files/ja/web/http/headers/www-authenticate/index.html @@ -0,0 +1,93 @@ +--- +title: WWW-Authenticate +slug: Web/HTTP/Headers/WWW-Authenticate +tags: + - HTTP + - HTTP ヘッダー + - ヘッダー + - リファレンス + - レスポンスヘッダー +translation_of: Web/HTTP/Headers/WWW-Authenticate +--- +
{{HTTPSidebar}}
+ +

HTTP の WWW-Authenticate 応答ヘッダーは、リソースへのアクセス権を得るために使われる認証方法を定義します。

+ +

WWW-Authenticate ヘッダーは {{HTTPStatus("401")}} Unauthorized 応答と共に送られます。

+ + + + + + + + + + + + +
ヘッダー種別{{Glossary("Response header", "応答ヘッダー")}}
{{Glossary("Forbidden header name", "禁止ヘッダー名")}}いいえ
+ +

構文

+ +
WWW-Authenticate: <type> realm=<realm>
+
+ +

ディレクティブ

+ +
+
<type>
+
認証の種類。一般的には "Basic" です。 IANA は 認証方式の一覧を管理しています。
+
realm=<realm>
+
保護領域の説明です。 realm が指定されていない場合は、クライアントはよく書式化されたホスト名を代わりに表示します。
+
charset=<charset>
+
ユーザー名とパスワードを送信するときのサーバーが推奨するエンコーディング方式をクライアントに伝えます。大文字小文字の区別なしの文字列 "UTF-8" だけが許可されています。これは realm 文字列のエンコーディングとは関係がありません。
+
+ +

+ +

通常、 WWW-Authenticate ヘッダーを含むサーバーの応答は以下のようなものです。

+ +
WWW-Authenticate: Basic
+
+WWW-Authenticate: Basic realm="Access to the staging site", charset="UTF-8"
+
+ +

Apache や nginx サーバーで HTTP Basic 認証を使用してサイトを保護する方法の例については、 HTTP 認証 を参照してください。

+ +

仕様書

+ + + + + + + + + + + + + + + + + + +
仕様書題名
{{RFC("7235", "WWW-Authenticate", "4.1")}}HTTP/1.1: Authentication
{{RFC("7617")}}The 'Basic' HTTP Authentication Scheme
+ +

ブラウザーの対応

+ + + +

{{Compat("http.headers.WWW-Authenticate")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf