MCPcopy Index your code
hub / github.com/fastapi/fastapi / HTTPBasicCredentials

Class HTTPBasicCredentials

fastapi/security/http.py:16–26  ·  view source on GitHub ↗

The HTTP Basic credentials given as the result of using `HTTPBasic` in a dependency. Read more about it in the [FastAPI docs for HTTP Basic Auth](https://fastapi.tiangolo.com/advanced/security/http-basic-auth/).

Source from the content-addressed store, hash-verified

14
15
16class HTTPBasicCredentials(BaseModel):
17 """
18 The HTTP Basic credentials given as the result of using `HTTPBasic` in a
19 dependency.
20
21 Read more about it in the
22 [FastAPI docs for HTTP Basic Auth](https://fastapi.tiangolo.com/advanced/security/http-basic-auth/).
23 """
24
25 username: Annotated[str, Doc("The HTTP Basic username.")]
26 password: Annotated[str, Doc("The HTTP Basic password.")]
27
28
29class HTTPAuthorizationCredentials(BaseModel):

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…