Skip to content

Commit 0f61dc9

Browse files
authored
Merge pull request #4 from feteu/develop
v1.0.3
2 parents fdd8a48 + d050187 commit 0f61dc9

File tree

3 files changed

+45
-40
lines changed

3 files changed

+45
-40
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![PyPI - Downloads](https://img.shields.io/pypi/dm/asgi-claim-validator.svg)](https://pypi.org/project/asgi-claim-validator/)
12
[![PyPI - License](https://img.shields.io/pypi/l/asgi-claim-validator)](https://www.gnu.org/licenses/gpl-3.0)
23
[![PyPI - Version](https://img.shields.io/pypi/v/asgi-claim-validator.svg)](https://pypi.org/project/asgi-claim-validator/)
34
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/asgi-claim-validator)](https://pypi.org/project/asgi-claim-validator/)
@@ -97,8 +98,8 @@ app = AsyncApp(__name__, specification_dir="spec")
9798
# Add the ClaimValidatorMiddleware
9899
app.add_middleware(
99100
ClaimValidatorMiddleware,
100-
claims_callable=lambda scope: scope["extensions"]["connexion_context"]["token_info"],
101-
secured={
101+
claims_callable = lambda scope: scope["extensions"]["connexion_context"]["token_info"],
102+
secured = {
102103
"^/secured/?$": {
103104
"GET": {
104105
"sub": {
@@ -114,7 +115,7 @@ app.add_middleware(
114115
},
115116
},
116117
},
117-
skipped={
118+
skipped = {
118119
"^/skipped/?$": ["GET"],
119120
},
120121
)
@@ -136,7 +137,7 @@ The `secured` configuration is a dictionary that defines the paths and the claim
136137

137138
Example:
138139
```python
139-
secured={
140+
secured = {
140141
"^/secured/?$": {
141142
"GET": {
142143
"sub": {
@@ -160,7 +161,7 @@ The `skipped` configuration is a dictionary that defines the paths and methods t
160161

161162
Example:
162163
```python
163-
skipped={
164+
skipped = {
164165
"^/skipped/?$": ["GET"],
165166
}
166167
```

poetry.lock

+36-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "asgi-claim-validator"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "A focused ASGI middleware for validating additional claims within JWT tokens to enhance token-based workflows."
55
authors = ["Fabio Greco <[email protected]>"]
66
maintainers = ["Fabio Greco <[email protected]>"]
@@ -47,9 +47,9 @@ packages = [
4747

4848
[tool.poetry.dependencies]
4949
python = ">=3.11,<4.0"
50-
joserfc = ">=1.0.2"
50+
joserfc = ">=1.0.1"
5151
jsonschema = ">=4.23.0"
52-
starlette = ">=0.45.3"
52+
starlette = ">=0.45.2"
5353

5454
[tool.poetry.group.dev.dependencies]
5555
connexion = {version="*", extras=["swagger-ui"]}

0 commit comments

Comments
 (0)