Basic and Digest HTTP Authentication: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://www.ietf.org/rfc/rfc2617.txt =Internal= * HTTP =Overview=")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=


* https://www.ietf.org/rfc/rfc2617.txt
* HTTP Authentication: Basic and Digest Access Authentication https://www.ietf.org/rfc/rfc2617.txt


=Internal=
=Internal=
Line 8: Line 8:


=Overview=
=Overview=
=Authorization Request Header=
{{Internal|HTTP Request Header Authorization|Authorization Request Header}}
=Basic Authentication=
The content of the "Authorization" header should be:
Authorization: Basic <base64_of_username:password>
For example, if the username is "testuser" and password is "testpassword", then the string "testuser:testpassword" is base64-encoded and assigned to the Authorization header as follows:
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3N3b3Jk

Latest revision as of 01:06, 11 March 2020

External

Internal

Overview

Authorization Request Header

Authorization Request Header

Basic Authentication

The content of the "Authorization" header should be:

Authorization: Basic <base64_of_username:password>

For example, if the username is "testuser" and password is "testpassword", then the string "testuser:testpassword" is base64-encoded and assigned to the Authorization header as follows:

Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3N3b3Jk