get_access_token() — fastapi Function Reference
Architecture documentation for the get_access_token() function in test_tutorial004.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab["get_access_token()"] 99a6e52c_39c3_5825_2899_8b0fa980bff4["test_tutorial004.py"] 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab -->|defined in| 99a6e52c_39c3_5825_2899_8b0fa980bff4 679757cd_bff8_fcf6_720a_cdd04278108c["test_token()"] 679757cd_bff8_fcf6_720a_cdd04278108c -->|calls| 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab f1a431e4_c9aa_2604_ba66_2fa1213b81ae["test_token_inactive_user()"] f1a431e4_c9aa_2604_ba66_2fa1213b81ae -->|calls| 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab 1d997ec3_01e4_6d9b_12ff_54521751ea2f["test_read_items()"] 1d997ec3_01e4_6d9b_12ff_54521751ea2f -->|calls| 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab style 193c5ee6_1e90_d94f_c640_7dfbaa4c2bab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_security/test_tutorial004.py lines 27–32
def get_access_token(*, username="johndoe", password="secret", client: TestClient):
data = {"username": username, "password": password}
response = client.post("/token", data=data)
content = response.json()
access_token = content.get("access_token")
return access_token
Domain
Subdomains
Source
Frequently Asked Questions
What does get_access_token() do?
get_access_token() is a function in the fastapi codebase, defined in tests/test_tutorial/test_security/test_tutorial004.py.
Where is get_access_token() defined?
get_access_token() is defined in tests/test_tutorial/test_security/test_tutorial004.py at line 27.
What calls get_access_token()?
get_access_token() is called by 3 function(s): test_read_items, test_token, test_token_inactive_user.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free