跳到主要内容

1. 引言 (Introduction)

本文档定义 "Basic" Hypertext Transfer Protocol (HTTP) authentication scheme, 该方案以 user-id/password pairs 形式传输 credentials, 并使用 Base64 编码 (HTTP authentication schemes 在 [RFC7235] 中定义).

除非与 TLS (Transport Layer Security, [RFC5246]) 等某种外部安全系统结合使用, 否则该方案不被视为安全的 user authentication 方法, 因为 user-id 和 password 会以 cleartext 形式在网络上传输.

"Basic" scheme 先前在 [RFC2617] Section 2 中定义. 本文档更新该定义, 并通过引入 'charset' authentication parameter (Section 2.1) 来处理 internationalization issues.

其他更新 RFC 2617 的文档包括 "Hypertext Transfer Protocol (HTTP/1.1): Authentication" ([RFC7235], 定义 authentication framework), "HTTP Digest Access Authentication" ([RFC7616], 更新 "Digest" authentication scheme 的定义), 以及 "HTTP Authentication-Info and Proxy-Authentication-Info Response Header Fields" ([RFC7615]). 这四份文档合起来废止 RFC 2617.

1.1. 术语和记号 (Terminology and Notation)

本文档中的关键词 "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" 和 "OPTIONAL" 应按 [RFC2119] 中的描述解释.

术语 "protection space" 和 "realm" 在 [RFC7235] Section 2.2 中定义.

术语 "(character) repertoire" 和 "character encoding scheme" 在 [RFC6365] Section 2 中定义.