Hylke Postma
3b2e891917
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
...
Co-authored-by: Hylke Postma <h.postma@docuwork.nl>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2021-07-29 12:30:48 +02:00
Sebastián Ramírez
fdb6c9ccc5
✨ Improve type annotations, add support for mypy --strict, internally and for external packages ( #2547 )
2020-12-20 19:50:00 +01:00
Nima Mashhadi M. Reza
da9b5201c4
🔧 Add Flake8 linting ( #1774 )
...
Co-authored-by: nimashadix <nimashadix@pop-os.localdomain>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-08-09 12:54:05 +02:00
Yurii Karabas
55b9faeb48
♻ Simplify code syntax in several places ( #1753 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-08-03 15:16:51 +02:00
Nima Mashhadi M. Reza
3223de5598
🎨 Add typing.Optional to variables that accept None as value ( #1731 )
...
Co-authored-by: nimashadix <nimashadix@pop-os.localdomain>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-08-03 14:29:07 +02:00
tomarv2
ff6afeaf78
✏ Fix docstring typo for oauth2 utils ( #1621 )
2020-07-10 20:31:15 +02:00
Brian Mboya
fe453f80ed
⬆ Upgrade isort to version 5.x.x ( #1670 )
...
* Update isort script to match changes in the new release, isort v5.0.2
* Downgrade isort to version v4.3.21
* Add an alternative flag to --recursive in isort v5.0.2
* Add isort config file
* 🚚 Import from docs_src for tests
* 🎨 Format dependencies.utils
* 🎨 Remove isort combine_as_imports, keep black profile
* 🔧 Update isort config, use pyproject.toml, Black profile
* 🔧 Update format scripts to use explicit directories to format
otherwise it would try to format venv env directories, I have several with different Python versions
* 🎨 Format NoSQL tutorial after re-sorting imports
* 🎨 Fix format for __init__.py
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-07-09 20:06:12 +02:00
Richard Hoekstra
bd2acbcabb
✨ Export OAuth2PasswordRequestFormStrict from security ( #1462 )
...
* Update __init__.py
Fixes an import error:
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestFormStrict
ImportError: cannot import name 'OAuth2PasswordRequestFormStrict'
* Simplify import of OAuth2PasswordRequestFormStrict
* Simplify import of OAuth2PasswordRequestFormStrict
2020-06-13 18:08:08 +02:00
adg-mh
1f53fef70a
✏️ Update doc string with correct class name ( #1126 )
2020-03-27 17:18:23 +01:00
Jesse P. Johnson
91fe90e8e6
✨ Implement OAuth2 authorization_code integration ( #797 )
2020-01-08 22:47:19 +01:00
Sebastián Ramírez
dcc1e1bcf8
♻️ Refine internal type declarations and logic around them ( #338 )
2019-06-27 20:51:17 +02:00
Sebastián Ramírez
d262f6e929
🐛 Fix HTTP Bearer security auto-error ( #282 )
2019-06-01 09:57:45 +04:00
Sebastián Ramírez
3797c04946
✨ Use 401 with WWW-Authenticate for OAuth2 and add scope_str ( #188 )
2019-04-27 17:00:56 +04:00
Sebastián Ramírez
f216d340ec
✨ Add automatic header handling for HTTP Basic Auth ( #175 )
...
* ✨ Add automatic header handling for HTTP Basic Auth
* 🎨 Remove obsolete comment
2019-04-21 21:44:25 +04:00
Sebastián Ramírez
7391056daf
✨ Add OAuth2 scopes with SecurityScopes, upgrade Security ( #141 )
...
* ✨ Upgrade OAuth2 Security with scopes handling
* 📝 Update Security tutorial with OAuth2 and JWT
* ✨ Add tutorial code for OAuth2 with scopes (and JWT)
* ✅ Add tests for tutorial/OAuth2 with scopes
* 🐛 Fix security_scopes type declaration
* ✨ Add docs and tests for SecurityScopes
2019-04-09 23:29:04 +04:00
Sebastián Ramírez
fad3a9e1dc
✨ Add auto_error to security utils ( #134 )
...
to allow them to be optional, also allowing the declaration of multiple security schemes
2019-04-03 15:44:52 +04:00
Sebastián Ramírez
1112ac7538
⬆️ Update imports and scripts for new isort versions ( #75 )
2019-03-09 15:04:13 +04:00
Sebastián Ramírez
90af868146
✨ Add security checks for HTTP utils
...
and tests for them
2018-12-29 23:04:54 +04:00
Sebastián Ramírez
4a0316bcfe
🎨 Add missing type definition
2018-12-28 20:39:04 +04:00
Sebastián Ramírez
0393a093d3
✨ Improve security utilities and add tests
2018-12-28 20:35:48 +04:00
Sebastián Ramírez
4a0922ebab
♻️ Update OAuth2 class utilities to be dependencies
2018-12-24 20:20:21 +04:00
Sebastián Ramírez
cfb65d0e15
🐛 Fix utility OAuth2PasswordRequestForm to use forms
...
and be used as a dependency
2018-12-24 09:34:28 +04:00
Sebastián Ramírez
7da9625505
💚 Revert to flit install and re-format
...
As it has shown to be more reliable, and closer to final user environments
2018-12-18 22:36:04 +04:00
Sebastián Ramírez
00e2e544c7
♻️ Re-format tutorials, files names and tests
...
for tutorial files
2018-12-18 21:59:06 +04:00
Sebastián Ramírez
9febe9af2a
✨ Update OAuth2 Form model and add strict version
2018-12-14 10:01:33 +04:00
Sebastián Ramírez
ece3252385
✨ Add util class for OAuth2 Password Bearer scheme
2018-12-10 20:11:14 +04:00
Sebastián Ramírez
8cc9ccab92
🎨 Update main imports (and exports)
2018-12-10 07:59:17 +04:00
Sebastián Ramírez
db3c270f8e
✨ Update requests with body, rename params
2018-12-08 11:55:36 +04:00
Sebastián Ramírez
0e19c24014
✨ Update parameter names and order
...
fix mypy types, refactor, lint
2018-12-07 19:12:16 +04:00
Sebastián Ramírez
addfa89b0f
✨ Refactor, update code, several features
2018-12-06 23:47:58 +04:00
Sebastián Ramírez
b9d912c638
♻️ Refactor, fix and update code
2018-12-06 20:24:50 +04:00
Sebastián Ramírez
406c092a3b
🎉 Start tracking messy initial stage
...
...before refactoring and breaking something
2018-12-05 10:56:50 +04:00