Basic access authentication: Difference between revisions

Content deleted Content added
m Bank tranfer
Tags: Reverted Visual edit Mobile edit Mobile web edit Advanced mobile edit
Protocol: improved style
Tags: Mobile edit Mobile app edit Android app edit App section source
 
(2 intermediate revisions by 2 users not shown)
Line 6:
It is specified in {{IETF RFC|7617}} from 2015, which obsoletes {{IETF RFC|2617}} from 1999.
 
== Features ==
== 5a07f4e65c4ad973a7003bce00516d465fbf89c5 ==
HTTP Basic authentication (BA) implementation is the simplest technique for enforcing [[access controls]] to web resources because it does not require [[HTTP cookie|cookies]], session identifiers, or login pages; rather, HTTP Basic authentication uses standard fields in the [[HTTP header]].
 
Line 40:
WWW-Authenticate: Basic realm="User Visible Realm", charset="UTF-8"
</code>
 
 
 
This parameter indicates that the server expects the client to use UTF-8 for encoding username and password (see below).
Line 61 ⟶ 59:
</code>
 
<syntaxhighlight lang="python">
<code>
'Basic ' + base64.b64encode(f"{<clientid>}:{<client secret key>}".encode()).decode()
</syntaxhighlight>
</code>
 
== See also ==