mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typo in HTTP Basic auth tutorial (#514)
This commit is contained in:
parent
f2e7ef7056
commit
0761f11d1a
|
|
@ -12,8 +12,8 @@ Then, when you type that username and password, the browser sends them in the he
|
||||||
|
|
||||||
## Simple HTTP Basic Auth
|
## Simple HTTP Basic Auth
|
||||||
|
|
||||||
* Import `HTTPBAsic` and `HTTPBasicCredentials`.
|
* Import `HTTPBasic` and `HTTPBasicCredentials`.
|
||||||
* Create a "`security` scheme" using `HTTPBAsic`.
|
* Create a "`security` scheme" using `HTTPBasic`.
|
||||||
* Use that `security` with a dependency in your *path operation*.
|
* Use that `security` with a dependency in your *path operation*.
|
||||||
* It returns an object of type `HTTPBasicCredentials`:
|
* It returns an object of type `HTTPBasicCredentials`:
|
||||||
* It contains the `username` and `password` sent.
|
* It contains the `username` and `password` sent.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue