@@ -1882,13 +1882,12 @@ def _process_auth_fields(values: Dict[str, Any]) -> Optional[Dict[str, Any]]:
1882
1882
Raises:
1883
1883
ValueError: If auth type is invalid
1884
1884
"""
1885
- auth_type = values .get ("auth_type" )
1885
+ auth_type = values .data . get ("auth_type" )
1886
1886
1887
1887
if auth_type == "basic" :
1888
1888
# For basic authentication, both username and password must be present
1889
- username = values .get ("auth_username" )
1890
- password = values .get ("auth_password" )
1891
-
1889
+ username = values .data .get ("auth_username" )
1890
+ password = values .data .get ("auth_password" )
1892
1891
if not username or not password :
1893
1892
raise ValueError ("For 'basic' auth, both 'auth_username' and 'auth_password' must be provided." )
1894
1893
@@ -1897,7 +1896,7 @@ def _process_auth_fields(values: Dict[str, Any]) -> Optional[Dict[str, Any]]:
1897
1896
1898
1897
if auth_type == "bearer" :
1899
1898
# For bearer authentication, only token is required
1900
- token = values .get ("auth_token" )
1899
+ token = values .data . get ("auth_token" )
1901
1900
1902
1901
if not token :
1903
1902
raise ValueError ("For 'bearer' auth, 'auth_token' must be provided." )
@@ -1906,8 +1905,8 @@ def _process_auth_fields(values: Dict[str, Any]) -> Optional[Dict[str, Any]]:
1906
1905
1907
1906
if auth_type == "authheaders" :
1908
1907
# For headers authentication, both key and value must be present
1909
- header_key = values .get ("auth_header_key" )
1910
- header_value = values .get ("auth_header_value" )
1908
+ header_key = values .data . get ("auth_header_key" )
1909
+ header_value = values .data . get ("auth_header_value" )
1911
1910
1912
1911
if not header_key or not header_value :
1913
1912
raise ValueError ("For 'headers' auth, both 'auth_header_key' and 'auth_header_value' must be provided." )
0 commit comments