]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
:sparkles: Add auto_error to security utils (#134)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 3 Apr 2019 11:44:52 +0000 (15:44 +0400)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2019 11:44:52 +0000 (15:44 +0400)
commitfad3a9e1dcc077493aed8057278607994ee61ef1
treeef28b07b8c5a4fc97f7498e5c4f9c87bb9d28a04
parentb35b0a9a90bb01c3ba0165df9a436a2eb8fcbbc0
:sparkles: Add auto_error to security utils (#134)

to allow them to be optional, also allowing the declaration of multiple security schemes
14 files changed:
fastapi/security/api_key.py
fastapi/security/http.py
fastapi/security/oauth2.py
fastapi/security/open_id_connect_url.py
tests/test_security_api_key_cookie_optional.py [new file with mode: 0644]
tests/test_security_api_key_header_optional.py [new file with mode: 0644]
tests/test_security_api_key_query_optional.py [new file with mode: 0644]
tests/test_security_http_base_optional.py [new file with mode: 0644]
tests/test_security_http_basic_optional.py [new file with mode: 0644]
tests/test_security_http_bearer_optional.py [new file with mode: 0644]
tests/test_security_http_digest_optional.py [new file with mode: 0644]
tests/test_security_oauth2_optional.py [new file with mode: 0644]
tests/test_security_oauth2_password_bearer_optional.py [new file with mode: 0644]
tests/test_security_openid_connect_optional.py [new file with mode: 0644]