@@ -52,14 +52,13 @@ def test_public_key_and_metadata_retrive():
5252 "mock" : {
5353 "module" : "pyeudiw.tests.trust.mock_trust_handler" ,
5454 "class" : "MockTrustHandler" ,
55- "config" : {},
55+ "config" : {"include_issued_jwt_header_param" : True },
5656 },
5757
5858 }, db_engine , default_client_id = "default-client-id" , mode = "update_first"
5959 )
6060
6161 uuid_url = f"http://{ uuid4 ()} .issuer.it"
62-
6362 assert trust_ev .get_jwt_header_trust_parameters (uuid_url ) == {'trust_param_name' : {'trust_param_key' : 'trust_param_value' }}
6463 metadata = trust_ev .get_metadata ()
6564
@@ -82,7 +81,7 @@ def test_update_first_strategy():
8281 "mock" : {
8382 "module" : "pyeudiw.tests.trust.mock_trust_handler" ,
8483 "class" : "UpdateTrustHandler" ,
85- "config" : { },
84+ "config" : { "include_issued_jwt_header_param" : True },
8685 },
8786
8887 }, db_engine , default_client_id = "default-client-id"
@@ -102,7 +101,7 @@ def test_cache_first_strategy():
102101 "mock" : {
103102 "module" : "pyeudiw.tests.trust.mock_trust_handler" ,
104103 "class" : "UpdateTrustHandler" ,
105- "config" : { },
104+ "config" : { "include_issued_jwt_header_param" : True },
106105 },
107106
108107 }, db_engine , default_client_id = "default-client-id" , mode = "cache_first"
@@ -122,7 +121,8 @@ def test_cache_first_strategy_expired():
122121 "module" : "pyeudiw.tests.trust.mock_trust_handler" ,
123122 "class" : "UpdateTrustHandler" ,
124123 "config" : {
125- "exp" : 0
124+ "exp" : 0 ,
125+ "include_issued_jwt_header_param" : True
126126 },
127127 },
128128
@@ -143,7 +143,7 @@ def test_cache_first_strategy_expired_revoked():
143143 "mock" : {
144144 "module" : "pyeudiw.tests.trust.mock_trust_handler" ,
145145 "class" : "UpdateTrustHandler" ,
146- "config" : {},
146+ "config" : {"include_issued_jwt_header_param" : True },
147147 },
148148
149149 }, db_engine , default_client_id = "default-client-id" , mode = "cache_first"
@@ -166,7 +166,7 @@ def test_cache_first_strategy_expired_force_update():
166166 "mock" : {
167167 "module" : "pyeudiw.tests.trust.mock_trust_handler" ,
168168 "class" : "UpdateTrustHandler" ,
169- "config" : { },
169+ "config" : { "include_issued_jwt_header_param" : True },
170170 },
171171
172172 }, db_engine , default_client_id = "default-client-id" , mode = "cache_first"
0 commit comments