Basic access authentication: Difference between revisions

Content deleted Content added
m Reverted edits by Songhor (talk) (AV)
Protocol: improved style
Tags: Mobile edit Mobile app edit Android app edit App section source
 
(One intermediate revision by one other user not shown)
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 ==