faisalsaificode
9d346587d0
Cover tutorial002_auth docs example and simplify scope guard
FastAPI enforces 100% coverage. Added tutorial test to exercise
tutorial002_auth_py310.py. Removed redundant http scope guard in
__call__ — Starlette's StaticFiles asserts scope["type"] == "http"
itself, so the extra branch was dead code + uncovered.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected] >
2 months ago
faisalsaificode
8f490285f1
Fix: catch starlette.HTTPException, support sync auth callables
Addresses bot review feedback:
- Catch starlette.exceptions.HTTPException (fastapi.HTTPException is a
subclass, so both are covered). FastAPI's security modules raise
starlette.HTTPException, which previously fell through unhandled.
- Support sync auth callables via starlette.run_in_threadpool. Detected
at construction time with inspect.iscoroutinefunction.
- Add tests for sync callables and starlette.HTTPException handling.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected] >
2 months ago
faisalsaificode
edd5be62d6
Address review feedback: plain text errors, configurable on_error, perf docs
- Changed default error response from JSON to plain text (browser-friendly)
- Added optional `on_error` callback for custom error responses (redirect
to login page, HTML error pages, etc.)
- Added performance note about keeping auth checks lightweight
- Added tests for redirect and HTML custom error responses
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected] >
2 months ago
pre-commit-ci-lite[bot]
6513de420d
🎨 Auto format
2 months ago
faisalsaificode
95f571efc9
Add AuthStaticFiles to support authentication for static file serving
Adds a new AuthStaticFiles class that extends StaticFiles with an `auth`
parameter, allowing users to protect static files behind authentication.
This addresses a long-standing feature request (issue #858 ) where mounted
static files bypass FastAPI's dependency injection and serve files without
any access control.
Closes #858
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected] >
2 months ago
github-actions[bot]
c3c9dd6b1a
📝 Update release notes
[skip ci]
2 months ago
Motov Yurii
180e81bb4b
🔨 Add pre-commit hook to ensure latest release header has date ( #15293 )
2 months ago
Sebastián Ramírez
1f442c454f
🔖 Release version 0.135.3
2 months ago
Sebastián Ramírez
8f5d1577b4
📝 Update release notes
2 months ago
github-actions[bot]
428452a710
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
70580da818
✨ Add support for `@app.vibe()` ( #15280 )
2 months ago
github-actions[bot]
6ee87478d8
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
3e72c09a2a
👥 Update FastAPI People - Experts ( #15279 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
96df35f7a4
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
6c8112555b
⬆ Bump orjson from 3.11.7 to 3.11.8 ( #15276 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
428f82c936
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
5599c59b9e
⬆ Bump ruff from 0.15.0 to 0.15.8 ( #15277 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
cc47796509
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
9274097c30
👥 Update FastAPI GitHub topic repositories ( #15274 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
681146d90b
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
cb4fe1b453
⬆ Bump fastmcp from 2.14.5 to 3.2.0 ( #15267 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
a15609f56d
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
81194139aa
👥 Update FastAPI People - Contributors and Translators ( #15270 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
d128a7089a
📝 Update release notes
[skip ci]
3 months ago
dependabot[bot]
3b9d8481c5
⬆ Bump requests from 2.32.5 to 2.33.0 ( #15228 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago
github-actions[bot]
937d3075f9
📝 Update release notes
[skip ci]
3 months ago
Sofie Van Landeghem
8238446b1b
👷 Add ty check to `lint.sh` ( #15136 )
3 months ago
github-actions[bot]
e2a0fd4ad8
📝 Update release notes
[skip ci]
3 months ago
Kadir Can Ozden
fa3588c38c
✏️ Fix typo for `client_secret` in OAuth2 form docstrings ( #14946 )
3 months ago
Sebastián Ramírez
25a3697ced
🔖 Release version 0.135.2
3 months ago
github-actions[bot]
ab125daa40
📝 Update release notes
[skip ci]
3 months ago
Sebastián Ramírez
122b6d490f
📝 Add missing last release notes dates ( #15202 )
3 months ago
github-actions[bot]
68ac0ab91e
📝 Update release notes
[skip ci]
3 months ago
Motov Yurii
ea6e287eb3
📝 Update docs for contributors and team members regarding translation PRs ( #15200 )
3 months ago
github-actions[bot]
d0a6f208c5
📝 Update release notes
[skip ci]
3 months ago
Motov Yurii
fd9e192cf4
💄 Fix code blocks in reference docs overflowing table width ( #15094 )
3 months ago
github-actions[bot]
fce9460f86
📝 Update release notes
[skip ci]
3 months ago
Motov Yurii
0227991a01
🔨 Exclude spam comments from statistics in `scripts/people.py` ( #15088 )
3 months ago
github-actions[bot]
cbd64b09a3
📝 Update release notes
[skip ci]
3 months ago
Sofie Van Landeghem
aeb9f4bb85
⬆️ Increase lower bound to `pydantic >=2.9.0.` and fix the test suite ( #15139 )
Co-authored-by: Motov Yurii <[email protected] >
3 months ago
github-actions[bot]
64feaec802
📝 Update release notes
[skip ci]
3 months ago
Sebastián Ramírez
12bbd9453f
🌐 Update translations for zh (update-outdated) ( #15177 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
3 months ago
github-actions[bot]
453988f359
📝 Update release notes
[skip ci]
3 months ago
Sebastián Ramírez
fe98ea307a
🌐 Update translations for zh-hant (update-outdated) ( #15178 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
3 months ago
github-actions[bot]
b7bd1874fe
📝 Update release notes
[skip ci]
3 months ago
dependabot[bot]
602ddc2e51
⬆ Bump authlib from 1.6.7 to 1.6.9 ( #15128 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <[email protected] >
3 months ago
github-actions[bot]
30bd2d5878
📝 Update release notes
[skip ci]
3 months ago
github-actions[bot]
a4e005c140
📝 Update release notes
[skip ci]
3 months ago
dependabot[bot]
6cd66ace1c
⬆ Bump pyasn1 from 0.6.2 to 0.6.3 ( #15143 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago
dependabot[bot]
2fba244c3a
⬆ Bump ujson from 5.11.0 to 5.12.0 ( #15150 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago