File tree Expand file tree Collapse file tree
gateway-api/src/gateway_api/clinical_jwt Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments