Skip to content

Commit

Permalink
Bump version to 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryMWinters committed Jul 30, 2024
1 parent bd65d53 commit e16b316
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastapi_oidc/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class IDToken(BaseModel):

iss: str
sub: str
aud: str
aud: str | list[str]
exp: int
iat: int

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastapi-oidc"
version = "0.0.9"
version = "0.0.10"
description = "A simple library for parsing and verifying externally issued OIDC ID tokens in fastapi."
authors = ["HarryMWinters <harrymcwinters@gmail.com>"]
license = "MIT"
Expand Down
10 changes: 10 additions & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ def test_IDToken_takes_arbitrary_extra_fields():
iat=42,
arbitrary_extra_field="Laskuil-Hliz",
)


def test_IDToken_takes_aud_list():
assert types.IDToken(
iss="ClearAirTurbulence",
sub="ValueJudgement",
aud=["SoberCounsel", "AnotherSoberCounsel"],
exp=3,
iat=42,
)

0 comments on commit e16b316

Please sign in to comment.