@@ -142,7 +142,7 @@ def __init__(
142142 print_output : OutputType = OutputType .STDOUT ,
143143 truncate_attributes : bool = True ,
144144 # OAuth 2.0 Password Grant parameters
145- oauth_oauth_uri : Optional [str ] = None ,
145+ oauth_uri : Optional [str ] = None ,
146146 oauth_username : Optional [str ] = None ,
147147 oauth_password : Optional [str ] = None ,
148148 oauth_client_id : Optional [str ] = None ,
@@ -155,6 +155,12 @@ def __init__(
155155 :param endpoint: Endpoint of the ReportPortal service.
156156 :param project: Project name to report to.
157157 :param api_key: Authorization API key.
158+ :param oauth_uri: OAuth 2.0 token endpoint URI (for OAuth authentication).
159+ :param oauth_username: Username for OAuth 2.0 authentication.
160+ :param oauth_password: Password for OAuth 2.0 authentication.
161+ :param oauth_client_id: OAuth 2.0 client ID.
162+ :param oauth_client_secret: OAuth 2.0 client secret (optional).
163+ :param oauth_scope: OAuth 2.0 scope (optional).
158164 :param is_skipped_an_issue: Option to mark skipped tests as not 'To Investigate' items on the
159165 server side.
160166 :param verify_ssl: Option to skip ssl verification.
@@ -167,12 +173,6 @@ def __init__(
167173 :param launch_uuid_print: Print Launch UUID into passed TextIO or by default to stdout.
168174 :param print_output: Set output stream for Launch UUID printing.
169175 :param truncate_attributes: Truncate test item attributes to default maximum length.
170- :param oauth_oauth_uri: OAuth 2.0 token endpoint URI (optional, for OAuth authentication).
171- :param oauth_username: Username for OAuth 2.0 authentication (optional).
172- :param oauth_password: Password for OAuth 2.0 authentication (optional).
173- :param oauth_client_id: OAuth 2.0 client ID (optional).
174- :param oauth_client_secret: OAuth 2.0 client secret (optional).
175- :param oauth_scope: OAuth 2.0 scope (optional).
176176 """
177177 self .api_v1 , self .api_v2 = "v1" , "v2"
178178 self .endpoint = endpoint
@@ -204,21 +204,21 @@ def __init__(
204204 )
205205 self .api_key = kwargs ["token" ]
206206
207- self .oauth_uri = oauth_oauth_uri
207+ self .oauth_uri = oauth_uri
208208 self .oauth_username = oauth_username
209209 self .oauth_password = oauth_password
210210 self .oauth_client_id = oauth_client_id
211211 self .oauth_client_secret = oauth_client_secret
212212 self .oauth_scope = oauth_scope
213213
214214 # Initialize authentication
215- oauth_params = [oauth_oauth_uri , oauth_username , oauth_password , oauth_client_id ]
215+ oauth_params = [oauth_uri , oauth_username , oauth_password , oauth_client_id ]
216216 oauth_provided = all (oauth_params )
217217
218218 if oauth_provided :
219219 # Use OAuth 2.0 Password Grant authentication
220220 self .auth = OAuthPasswordGrantAsync (
221- oauth_uri = oauth_oauth_uri ,
221+ oauth_uri = oauth_uri ,
222222 username = oauth_username ,
223223 password = oauth_password ,
224224 client_id = oauth_client_id ,
@@ -663,7 +663,7 @@ def clone(self) -> "Client":
663663 mode = self .mode ,
664664 launch_uuid_print = self .launch_uuid_print ,
665665 print_output = self .print_output ,
666- oauth_oauth_uri = self .oauth_uri ,
666+ oauth_uri = self .oauth_uri ,
667667 oauth_username = self .oauth_username ,
668668 oauth_password = self .oauth_password ,
669669 oauth_client_id = self .oauth_client_id ,
@@ -765,6 +765,12 @@ def __init__(
765765 :param endpoint: Endpoint of the ReportPortal service.
766766 :param project: Project name to report to.
767767 :param api_key: Authorization API key.
768+ :param oauth_uri: OAuth 2.0 token endpoint URI (for OAuth authentication).
769+ :param oauth_username: Username for OAuth 2.0 authentication.
770+ :param oauth_password: Password for OAuth 2.0 authentication.
771+ :param oauth_client_id: OAuth 2.0 client ID.
772+ :param oauth_client_secret: OAuth 2.0 client secret (optional).
773+ :param oauth_scope: OAuth 2.0 scope (optional).
768774 :param is_skipped_an_issue: Option to mark skipped tests as not 'To Investigate' items on the
769775 server side.
770776 :param verify_ssl: Option to skip ssl verification.
@@ -1587,6 +1593,12 @@ def __init__(
15871593 :param endpoint: Endpoint of the ReportPortal service.
15881594 :param project: Project name to report to.
15891595 :param api_key: Authorization API key.
1596+ :param oauth_uri: OAuth 2.0 token endpoint URI (for OAuth authentication).
1597+ :param oauth_username: Username for OAuth 2.0 authentication.
1598+ :param oauth_password: Password for OAuth 2.0 authentication.
1599+ :param oauth_client_id: OAuth 2.0 client ID.
1600+ :param oauth_client_secret: OAuth 2.0 client secret (optional).
1601+ :param oauth_scope: OAuth 2.0 scope (optional).
15901602 :param is_skipped_an_issue: Option to mark skipped tests as not 'To Investigate' items on the
15911603 server side.
15921604 :param verify_ssl: Option to skip ssl verification.
@@ -1769,6 +1781,12 @@ def __init__(
17691781 :param endpoint: Endpoint of the ReportPortal service.
17701782 :param project: Project name to report to.
17711783 :param api_key: Authorization API key.
1784+ :param oauth_uri: OAuth 2.0 token endpoint URI (for OAuth authentication).
1785+ :param oauth_username: Username for OAuth 2.0 authentication.
1786+ :param oauth_password: Password for OAuth 2.0 authentication.
1787+ :param oauth_client_id: OAuth 2.0 client ID.
1788+ :param oauth_client_secret: OAuth 2.0 client secret (optional).
1789+ :param oauth_scope: OAuth 2.0 scope (optional).
17721790 :param is_skipped_an_issue: Option to mark skipped tests as not 'To Investigate' items on the
17731791 server side.
17741792 :param verify_ssl: Option to skip ssl verification.
0 commit comments