@@ -1512,7 +1512,9 @@ fn test_token_introspection_successful_with_basic_auth_minimal_response() {
15121512 let client = new_client ( )
15131513 . set_auth_type ( AuthType :: BasicAuth )
15141514 . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) )
1515- . set_introspection_url ( IntrospectionUrl :: new ( "https://introspection/url" . to_string ( ) ) . unwrap ( ) ) ;
1515+ . set_introspection_url (
1516+ IntrospectionUrl :: new ( "https://introspection/url" . to_string ( ) ) . unwrap ( ) ,
1517+ ) ;
15161518
15171519 let introspection_response = client
15181520 . introspect ( & AccessToken :: new ( "access_token_123" . to_string ( ) ) )
@@ -1560,7 +1562,9 @@ fn test_token_introspection_successful_with_basic_auth_full_response() {
15601562 let client = new_client ( )
15611563 . set_auth_type ( AuthType :: BasicAuth )
15621564 . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) )
1563- . set_introspection_url ( IntrospectionUrl :: new ( "https://introspection/url" . to_string ( ) ) . unwrap ( ) ) ;
1565+ . set_introspection_url (
1566+ IntrospectionUrl :: new ( "https://introspection/url" . to_string ( ) ) . unwrap ( ) ,
1567+ ) ;
15641568
15651569 let introspection_response = client
15661570 . introspect ( & AccessToken :: new ( "access_token_123" . to_string ( ) ) )
@@ -1609,12 +1613,27 @@ fn test_token_introspection_successful_with_basic_auth_full_response() {
16091613 ] ) ,
16101614 introspection_response. scopes
16111615 ) ;
1612- assert_eq ! ( Some ( ClientId :: new( "aaa" . to_string( ) ) ) , introspection_response. client_id) ;
1616+ assert_eq ! (
1617+ Some ( ClientId :: new( "aaa" . to_string( ) ) ) ,
1618+ introspection_response. client_id
1619+ ) ;
16131620 assert_eq ! ( Some ( "demo" . to_string( ) ) , introspection_response. username) ;
1614- assert_eq ! ( Some ( BasicTokenType :: Bearer ) , introspection_response. token_type) ;
1615- assert_eq ! ( Some ( Utc . timestamp( 1604073517 , 0 ) ) , introspection_response. exp) ;
1616- assert_eq ! ( Some ( Utc . timestamp( 1604073217 , 0 ) ) , introspection_response. iat) ;
1617- assert_eq ! ( Some ( Utc . timestamp( 1604073317 , 0 ) ) , introspection_response. nbf) ;
1621+ assert_eq ! (
1622+ Some ( BasicTokenType :: Bearer ) ,
1623+ introspection_response. token_type
1624+ ) ;
1625+ assert_eq ! (
1626+ Some ( Utc . timestamp( 1604073517 , 0 ) ) ,
1627+ introspection_response. exp
1628+ ) ;
1629+ assert_eq ! (
1630+ Some ( Utc . timestamp( 1604073217 , 0 ) ) ,
1631+ introspection_response. iat
1632+ ) ;
1633+ assert_eq ! (
1634+ Some ( Utc . timestamp( 1604073317 , 0 ) ) ,
1635+ introspection_response. nbf
1636+ ) ;
16181637 assert_eq ! ( Some ( "demo" . to_string( ) ) , introspection_response. sub) ;
16191638 assert_eq ! ( Some ( vec![ "demo" . to_string( ) ] ) , introspection_response. aud) ;
16201639 assert_eq ! (
0 commit comments