blob: f97f74a47bdf1fc05ebd0a6e2d48b9f5131a6c56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Authentication
==============
sttp supports basic and bearer-token based authentication. In both cases, an ``Authorization`` header is added with the appropriate credentials.
Basic authentication, using which the username and password are encoded using Base64, can be added as follows::
sttp.auth.basic(username, password)
A bearer token can be added using::
sttp.auth.bearer(token)
|