Skip to content

Commit 109c613

Browse files
Ben fix
1 parent e1df5dd commit 109c613

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gateway-api/src/gateway_api/clinical_jwt/jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class JWT:
2020
expiration: int = field(default_factory=lambda: int(time()) + 300)
2121

2222
# These are here for future proofing but are not expected ever to be changed
23-
algorithm: str | None = None
23+
algorithm: str = "none"
2424
type: str = "JWT"
2525
reason_for_request: str = "directcare"
2626
requested_scope: str = "patient/*.read"

gateway-api/src/gateway_api/clinical_jwt/test_jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_jwt_creation_with_required_fields() -> None:
2929
assert token.requesting_device == '{"device": "info"}'
3030
assert token.requesting_organization == "ORG-123"
3131
assert token.requesting_practitioner == '{"practitioner": "info"}'
32-
assert token.algorithm is None
32+
assert token.algorithm == "none"
3333
assert token.type == "JWT"
3434
assert token.reason_for_request == "directcare"
3535
assert token.requested_scope == "patient/*.read"

0 commit comments

Comments
 (0)