Basic access authentication: Difference between revisions

Content deleted Content added
Protocol: improved style
Tags: Mobile edit Mobile app edit Android app edit App section source
 
(4 intermediate revisions by 4 users 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 60 ⟶ 58:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
</code>
 
<syntaxhighlight lang="python">
'Basic ' + base64.b64encode(f"{<clientid>}:{<client secret key>}".encode()).decode()
</syntaxhighlight>
 
== See also ==