RFC2617: HTTP Authentication

Last renew: April 7, 2022 pm

HTTP Authentication: Basic and Digest Access Authentication

在做课题的过程中需要了解RFC2617的知识,在此做一个中文总结。注:本文仅为个人学习笔记,无任何版权。

Basic Authentication Scheme

基本认证方案(Basic Authentication Scheme)是基于这样的模型:客户必须用一个用户ID和一个密码来认证自己的每个realm,realm vakye应当被认为是一个不透明的字符串,只能与该服务器上的其他realm进行比较以确定是否相等,服务器只有在能够验证Request-URI的用户ID和密码的情况下才能为请求提供服务。

basic-credentials = base64-user-pass

base64-user-pass = <base64 [4] encoding of user-pass, except not limited to 76 char/line>

user-pass = userid “:” password

userid = *<TEXT excluding “:”>

password = *TEXT