@@ -178,7 +178,7 @@ fn is_valid_token_endpoint_request(req: &Request) -> bool {
178178
179179#[ tokio:: test]
180180async fn pass_access_token_with_authorization_code ( ) {
181- let ( http_service , mock_server, issuer) = init_test ( ) . await ;
181+ let ( http_client , mock_server, issuer) = init_test ( ) . await ;
182182 let client_credentials = client_credentials ( & OAuthClientAuthenticationMethod :: None , & issuer) ;
183183 let token_endpoint = issuer. join ( "token" ) . unwrap ( ) ;
184184 let mut rng = rand_chacha:: ChaCha8Rng :: seed_from_u64 ( 42 ) ;
@@ -216,7 +216,7 @@ async fn pass_access_token_with_authorization_code() {
216216 . await ;
217217
218218 let ( response, response_id_token) = access_token_with_authorization_code (
219- & http_service ,
219+ & http_client ,
220220 client_credentials,
221221 & token_endpoint,
222222 AUTHORIZATION_CODE . to_owned ( ) ,
@@ -236,7 +236,7 @@ async fn pass_access_token_with_authorization_code() {
236236
237237#[ tokio:: test]
238238async fn fail_access_token_with_authorization_code_wrong_nonce ( ) {
239- let ( http_service , mock_server, issuer) = init_test ( ) . await ;
239+ let ( http_client , mock_server, issuer) = init_test ( ) . await ;
240240 let client_credentials = client_credentials ( & OAuthClientAuthenticationMethod :: None , & issuer) ;
241241 let token_endpoint = issuer. join ( "token" ) . unwrap ( ) ;
242242 let mut rng = rand_chacha:: ChaCha8Rng :: seed_from_u64 ( 42 ) ;
@@ -274,7 +274,7 @@ async fn fail_access_token_with_authorization_code_wrong_nonce() {
274274 . await ;
275275
276276 let error = access_token_with_authorization_code (
277- & http_service ,
277+ & http_client ,
278278 client_credentials,
279279 & token_endpoint,
280280 AUTHORIZATION_CODE . to_owned ( ) ,
@@ -297,7 +297,7 @@ async fn fail_access_token_with_authorization_code_wrong_nonce() {
297297
298298#[ tokio:: test]
299299async fn fail_access_token_with_authorization_code_no_id_token ( ) {
300- let ( http_service , mock_server, issuer) = init_test ( ) . await ;
300+ let ( http_client , mock_server, issuer) = init_test ( ) . await ;
301301 let client_credentials = client_credentials ( & OAuthClientAuthenticationMethod :: None , & issuer) ;
302302 let token_endpoint = issuer. join ( "token" ) . unwrap ( ) ;
303303 let mut rng = rand_chacha:: ChaCha8Rng :: seed_from_u64 ( 42 ) ;
@@ -335,7 +335,7 @@ async fn fail_access_token_with_authorization_code_no_id_token() {
335335 . await ;
336336
337337 let error = access_token_with_authorization_code (
338- & http_service ,
338+ & http_client ,
339339 client_credentials,
340340 & token_endpoint,
341341 AUTHORIZATION_CODE . to_owned ( ) ,
0 commit comments