Browse Source

Merge branch 'master' into feat/depr

pull/15101/head
svlandeg 4 months ago
parent
commit
76f8b96daa
  1. 1
      docs/en/docs/release-notes.md
  2. 2
      fastapi/security/http.py
  3. 4
      fastapi/security/oauth2.py
  4. 2
      fastapi/security/open_id_connect_url.py
  5. 4
      tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py

1
docs/en/docs/release-notes.md

@ -9,6 +9,7 @@ hide:
### Docs
* 📝 Fix duplicated words in docstrings. PR [#15116](https://github.com/fastapi/fastapi/pull/15116) by [@AhsanSheraz](https://github.com/AhsanSheraz).
* 📝 Add docs for `pyproject.toml` with `entrypoint`. PR [#15075](https://github.com/fastapi/fastapi/pull/15075) by [@tiangolo](https://github.com/tiangolo).
* 📝 Update links in docs to no longer use the classes external-link and internal-link. PR [#15061](https://github.com/fastapi/fastapi/pull/15061) by [@tiangolo](https://github.com/tiangolo).
* 🔨 Add JS and CSS handling for automatic `target=_blank` for links in docs. PR [#15063](https://github.com/fastapi/fastapi/pull/15063) by [@tiangolo](https://github.com/tiangolo).

2
fastapi/security/http.py

@ -321,7 +321,7 @@ class HTTPDigest(HTTPBase):
HTTP Digest authentication.
**Warning**: this is only a stub to connect the components with OpenAPI in FastAPI,
but it doesn't implement the full Digest scheme, you would need to to subclass it
but it doesn't implement the full Digest scheme, you would need to subclass it
and implement it in your code.
Ref: https://datatracker.ietf.org/doc/html/rfc7616

4
fastapi/security/oauth2.py

@ -53,7 +53,7 @@ class OAuth2PasswordRequestForm:
You could have custom internal logic to separate it by colon characters (`:`) or
similar, and get the two parts `items` and `read`. Many applications do that to
group and organize permissions, you could do it as well in your application, just
know that that it is application specific, it's not part of the specification.
know that it is application specific, it's not part of the specification.
"""
def __init__(
@ -207,7 +207,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm):
You could have custom internal logic to separate it by colon characters (`:`) or
similar, and get the two parts `items` and `read`. Many applications do that to
group and organize permissions, you could do it as well in your application, just
know that that it is application specific, it's not part of the specification.
know that it is application specific, it's not part of the specification.
grant_type: the OAuth2 spec says it is required and MUST be the fixed string "password".

2
fastapi/security/open_id_connect_url.py

@ -15,7 +15,7 @@ class OpenIdConnect(SecurityBase):
**Warning**: this is only a stub to connect the components with OpenAPI in FastAPI,
but it doesn't implement the full OpenIdConnect scheme, for example, it doesn't use
the OpenIDConnect URL. You would need to to subclass it and implement it in your
the OpenIDConnect URL. You would need to subclass it and implement it in your
code.
"""

4
tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py

@ -28,7 +28,7 @@ async def read_item():
"id": uuid.uuid4(),
"name": "Island In The Moon",
"price": 12.99,
"description": "A place to be be playin' and havin' fun",
"description": "A place to be playin' and havin' fun",
"tags": ["breater"],
}
@ -45,7 +45,7 @@ def test_annotations():
"name": "Island In The Moon",
"price": 12.99,
"tags": ["breater"],
"description": "A place to be be playin' and havin' fun",
"description": "A place to be playin' and havin' fun",
"tax": None,
}
)

Loading…
Cancel
Save