Releases: Neoteroi/BlackSheep
Releases · Neoteroi/BlackSheep
v1.2.1
- Adds built-in support for
JWT
bearer authentication, and validation
ofJWTs
issued by identity providers implementing OpenID Connect (OIDC)
discovery/.well-known/openid-configuration
(more in general, for JWTs
signed using asymmetric encryption and verified using public RSA keys) - Adds built-in support for OpenID Connect (OIDC), Authorization Code Grant
and Hybrid flows, which can be used to integrate withOAuth
applications - Adds built-in handling of
X-Forwarded
andForwarded
headers with
validation, including handling of trusted hosts - Adds a
TrustedHostsMiddleware
that can be used to validate hosts - Adds methods to obtain the request full URL, handling forward headers
- Adds an extensibility point that enables sorting of middlewares before they
are applied on the application - Fixes #199
- Downgrades
httptools
dependency to version>=0.2,<0.4
- Adds some improvements to the
testing
module - Upgrades
itsdangerous
to version~=2.0.1
- Deprecates the
encryptor
option for sessions, appliesitsdangerous
Serializer
by default
v1.2.0
- Includes
Python 3.10
in the CI/CD matrix - Includes
Python 3.10
wheel in the distribution package - Removes
orjson
development dependency when running tests - Fixes a bug happening in the code generating OpenAPI Documentation when
runningPython 3.10
v1.1.0
- Upgrades
httptools
dependency to version0.3.0
- Upgrades
python-dateutil
dependency to version2.8.2
- Upgrades
Jinja2
dependency to version3.0.2
- Modifies
setup.py
dependencies to be less strict (~=
instead of==
)
v1.0.9
- Adds support for application mounts (see discussion #160)
- Applies sorting of imports using
isort
, enforces linters in the CI pipeline
with bothblack
andisort
- Adds support for application events defined using decorators:
@app.on_start
,
@app.on_stop
- Updates
Jinja2
dependency to version3.0.1
- Adds support to configure JSON serializer and deserializer globally
for the web framework (#138), thus adding support for custom logic happening
upong JSON serialization and deserialization, and also for different
libraries likeorjson
, to handle JSON serialization and deserialization
Thanks to @myusko for his great contribution to add support for Mounts
, and recommending to use isort
and to enforce isort
and black
in the CI pipelines. 🎉
v1.0.8
- Corrects a bug forcing
camelCase
on examples objects handled as dataclasses
(issue #173), updating the dependency onessentials-openapi
to v1.0.4 - Corrects a bug causing duplicate components definitions in generated OpenAPI
documentation, when handlingOptional[T]
- Minor corrections to the
TestClient
class: HTTP HEAD, OPTIONS, and TRACE
should not allow request content body, therefore the corresponding methods
are updated to not support acontent
parameter - Automatically generates
404
response documentation when a request handler
defines anOptional[T]
return type (this happens only when the user doesn't
specify the documentation for an endpoint)
v1.0.7
- Adds a
TestClient
class that simplifies testing of applications - thanks to @myusko for this great contribution! - Fixes bug #156,
preventing route parameters to work when the user doesn't follow Python
naming conventions - Adds support for automatic generation of OpenAPI Documentation for
Generic
types - Improves the generation of OpenAPI Documentation for
pydantic
types and to
support more object types (fixes #167) - Ensures that request body is parsed as JSON only if the content type contains
the "json" substring
v1.0.6
- Fixes bug #153, reintroducing compatibility with Hypercorn
- Fixes a bug that made links generated for the discovery of static files not
working (double leading "/" inhref
) - Provides a way to normalize request handlers' response type when using custom
decorators (issue #135) - Adds support for testing Hypercorn and tests Hypercorn in GitHub Actions
v1.0.5
v1.0.5 :crown:
v1.0.4
v1.0.4 :crown:
v1.0.3
v1.0.3 :cookie: