@@ -219,7 +219,7 @@ fn test_authorize_url_with_extension_response_type() {
219219#[ test]
220220fn test_authorize_url_with_redirect_url ( ) {
221221 let client = new_client ( )
222- . set_redirect_url ( RedirectUrl :: new ( "https://localhost/redirect" . to_string ( ) ) . unwrap ( ) ) ;
222+ . set_redirect_uri ( RedirectUrl :: new ( "https://localhost/redirect" . to_string ( ) ) . unwrap ( ) ) ;
223223
224224 let ( url, _) = client
225225 . authorize_url ( || CsrfToken :: new ( "csrf_token" . to_string ( ) ) )
@@ -240,11 +240,11 @@ fn test_authorize_url_with_redirect_url() {
240240#[ test]
241241fn test_authorize_url_with_redirect_url_override ( ) {
242242 let client = new_client ( )
243- . set_redirect_url ( RedirectUrl :: new ( "https://localhost/redirect" . to_string ( ) ) . unwrap ( ) ) ;
243+ . set_redirect_uri ( RedirectUrl :: new ( "https://localhost/redirect" . to_string ( ) ) . unwrap ( ) ) ;
244244
245245 let ( url, _) = client
246246 . authorize_url ( || CsrfToken :: new ( "csrf_token" . to_string ( ) ) )
247- . set_redirect_url ( Cow :: Owned (
247+ . set_redirect_uri ( Cow :: Owned (
248248 RedirectUrl :: new ( "https://localhost/alternative" . to_string ( ) ) . unwrap ( ) ,
249249 ) )
250250 . url ( ) ;
@@ -611,7 +611,7 @@ fn test_exchange_password_with_json_response() {
611611fn test_exchange_code_successful_with_redirect_url ( ) {
612612 let client = new_client ( )
613613 . set_auth_type ( AuthType :: RequestBody )
614- . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
614+ . set_redirect_uri ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
615615
616616 let token = client
617617 . exchange_code ( AuthorizationCode :: new ( "ccc" . to_string ( ) ) )
@@ -659,7 +659,7 @@ fn test_exchange_code_successful_with_redirect_url() {
659659fn test_exchange_code_successful_with_basic_auth ( ) {
660660 let client = new_client ( )
661661 . set_auth_type ( AuthType :: BasicAuth )
662- . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
662+ . set_redirect_uri ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
663663
664664 let token = client
665665 . exchange_code ( AuthorizationCode :: new ( "ccc" . to_string ( ) ) )
@@ -707,7 +707,7 @@ fn test_exchange_code_successful_with_basic_auth() {
707707fn test_exchange_code_successful_with_pkce_and_extension ( ) {
708708 let client = new_client ( )
709709 . set_auth_type ( AuthType :: BasicAuth )
710- . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
710+ . set_redirect_uri ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
711711
712712 let token = client
713713 . exchange_code ( AuthorizationCode :: new ( "ccc" . to_string ( ) ) )
@@ -763,7 +763,7 @@ fn test_exchange_code_successful_with_pkce_and_extension() {
763763fn test_exchange_refresh_token_successful_with_extension ( ) {
764764 let client = new_client ( )
765765 . set_auth_type ( AuthType :: BasicAuth )
766- . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
766+ . set_redirect_uri ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) ) ;
767767
768768 let token = client
769769 . exchange_refresh_token ( & RefreshToken :: new ( "ccc" . to_string ( ) ) )
@@ -1535,8 +1535,8 @@ fn test_deserialize_optional_string_or_vec_string_vec() {
15351535fn test_token_introspection_successful_with_basic_auth_minimal_response ( ) {
15361536 let client = new_client ( )
15371537 . set_auth_type ( AuthType :: BasicAuth )
1538- . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) )
1539- . set_introspection_url (
1538+ . set_redirect_uri ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) )
1539+ . set_introspection_uri (
15401540 IntrospectionUrl :: new ( "https://introspection/url" . to_string ( ) ) . unwrap ( ) ,
15411541 ) ;
15421542
@@ -1586,8 +1586,8 @@ fn test_token_introspection_successful_with_basic_auth_minimal_response() {
15861586fn test_token_introspection_successful_with_basic_auth_full_response ( ) {
15871587 let client = new_client ( )
15881588 . set_auth_type ( AuthType :: BasicAuth )
1589- . set_redirect_url ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) )
1590- . set_introspection_url (
1589+ . set_redirect_uri ( RedirectUrl :: new ( "https://redirect/here" . to_string ( ) ) . unwrap ( ) )
1590+ . set_introspection_uri (
15911591 IntrospectionUrl :: new ( "https://introspection/url" . to_string ( ) ) . unwrap ( ) ,
15921592 ) ;
15931593
@@ -1691,7 +1691,7 @@ fn test_token_revocation_with_non_https_url() {
16911691 let client = new_client ( ) ;
16921692
16931693 let result = client
1694- . set_revocation_url ( RevocationUrl :: new ( "http://revocation/url" . to_string ( ) ) . unwrap ( ) )
1694+ . set_revocation_uri ( RevocationUrl :: new ( "http://revocation/url" . to_string ( ) ) . unwrap ( ) )
16951695 . revoke_token ( AccessToken :: new ( "access_token_123" . to_string ( ) ) . into ( ) )
16961696 . unwrap_err ( ) ;
16971697
@@ -1704,7 +1704,7 @@ fn test_token_revocation_with_non_https_url() {
17041704#[ test]
17051705fn test_token_revocation_with_unsupported_token_type ( ) {
17061706 let client = new_client ( )
1707- . set_revocation_url ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
1707+ . set_revocation_uri ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
17081708
17091709 let revocation_response = client
17101710 . revoke_token ( AccessToken :: new ( "access_token_123" . to_string ( ) ) . into ( ) ) . unwrap ( )
@@ -1731,20 +1731,21 @@ fn test_token_revocation_with_unsupported_token_type() {
17311731 } ,
17321732 ) ) ;
17331733
1734- assert ! ( matches!( revocation_response, Err (
1735- RequestTokenError :: ServerResponse (
1736- BasicRevocationErrorResponse {
1734+ assert ! ( matches!(
1735+ revocation_response,
1736+ Err ( RequestTokenError :: ServerResponse (
1737+ BasicRevocationErrorResponse {
17371738 error: RevocationErrorResponseType :: UnsupportedTokenType ,
17381739 ..
1739- } )
1740- )
1740+ }
1741+ ) )
17411742 ) ) ;
17421743}
17431744
17441745#[ test]
17451746fn test_token_revocation_with_access_token_and_empty_json_response ( ) {
17461747 let client = new_client ( )
1747- . set_revocation_url ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
1748+ . set_revocation_uri ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
17481749
17491750 client
17501751 . revoke_token ( AccessToken :: new ( "access_token_123" . to_string ( ) ) . into ( ) )
@@ -1774,7 +1775,7 @@ fn test_token_revocation_with_access_token_and_empty_json_response() {
17741775#[ test]
17751776fn test_token_revocation_with_access_token_and_empty_response ( ) {
17761777 let client = new_client ( )
1777- . set_revocation_url ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
1778+ . set_revocation_uri ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
17781779
17791780 client
17801781 . revoke_token ( AccessToken :: new ( "access_token_123" . to_string ( ) ) . into ( ) )
@@ -1799,7 +1800,7 @@ fn test_token_revocation_with_access_token_and_empty_response() {
17991800#[ test]
18001801fn test_token_revocation_with_access_token_and_non_json_response ( ) {
18011802 let client = new_client ( )
1802- . set_revocation_url ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
1803+ . set_revocation_uri ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
18031804
18041805 client
18051806 . revoke_token ( AccessToken :: new ( "access_token_123" . to_string ( ) ) . into ( ) )
@@ -1829,7 +1830,7 @@ fn test_token_revocation_with_access_token_and_non_json_response() {
18291830#[ test]
18301831fn test_token_revocation_with_refresh_token ( ) {
18311832 let client = new_client ( )
1832- . set_revocation_url ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
1833+ . set_revocation_uri ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
18331834
18341835 client
18351836 . revoke_token ( RefreshToken :: new ( "refresh_token_123" . to_string ( ) ) . into ( ) )
@@ -1865,7 +1866,7 @@ fn test_extension_token_revocation_successful() {
18651866 AuthUrl :: new ( "https://example.com/auth" . to_string ( ) ) . unwrap ( ) ,
18661867 Some ( TokenUrl :: new ( "https://example.com/token" . to_string ( ) ) . unwrap ( ) ) ,
18671868 )
1868- . set_revocation_url ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
1869+ . set_revocation_uri ( RevocationUrl :: new ( "https://revocation/url" . to_string ( ) ) . unwrap ( ) ) ;
18691870
18701871 client
18711872 . revoke_token ( ColorfulRevocableToken :: Red (
0 commit comments