You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
### Added
2
+
- OAuth 2.0 Password Grant authentication, check [Authentication Options](https://github.com/reportportal/client-javascript?tab=readme-ov-file#authentication-options) for more details.
| apiKey | Conditional || User's ReportPortal API key from which you want to send requests. It can be found on the profile page of this user. *Required only if OAuth is not configured. |
68
+
| oauth | Conditional || OAuth 2.0 configuration object. When provided, OAuth authentication will be used instead of API key. See OAuth Configuration below. |
69
+
70
+
#### OAuth Configuration
71
+
72
+
The `oauth` object supports the following properties:
| apiKey | Required || User's reportportal token from which you want to send requests. It can be found on the profile page of this user. |
58
-
| endpoint | Required || URL of your server. For example, if you visit the page at 'https://server:8080/ui', then endpoint will be equal to 'https://server:8080/api/v1'.|
59
-
| launch | Required || Name of the launch at creation. |
60
-
| project | Required || The name of the project in which the launches will be created. |
61
-
| headers | Optional | {} | The object with custom headers for internal http client. |
62
-
| debug | Optional | false | This flag allows seeing the logs of the client. Useful for debugging. |
63
-
| isLaunchMergeRequired | Optional | false | Allows client to merge launches into one at the end of the run via saving their UUIDs to the temp files at filesystem. At the end of the run launches can be merged using `mergeLaunches` method. Temp file format: `rplaunch-${launch_uuid}.tmp`. |
76
+
| tokenEndpoint | Required || OAuth 2.0 token endpoint URL for password grant flow. |
| endpoint | Required || URL of your server. For example, if you visit the page at 'https://server:8080/ui', then endpoint will be equal to 'https://server:8080/api/v1'.|
117
+
| launch | Required || Name of the launch at creation. |
118
+
| project | Required || The name of the project in which the launches will be created. |
119
+
| headers | Optional | {} | The object with custom headers for internal http client. |
120
+
| debug | Optional | false | This flag allows seeing the logs of the client. Useful for debugging. |
121
+
| isLaunchMergeRequired | Optional | false | Allows client to merge launches into one at the end of the run via saving their UUIDs to the temp files at filesystem. At the end of the run launches can be merged using `mergeLaunches` method. Temp file format: `rplaunch-${launch_uuid}.tmp`. |
64
122
| restClientConfig | Optional | Not set |`axios` like http client [config](https://github.com/axios/axios#request-config). May contain `agent` property for configure [http(s)](https://nodejs.org/api/https.html#https_https_request_url_options_callback) client, and other client options eg. `timeout`. For debugging and displaying logs you can set `debug: true`. Use the `retry` property (number or [`axios-retry`](https://github.com/softonic/axios-retry#options) config) to customise automatic retries. |
65
-
| launchUuidPrint | Optional | false | Whether to print the current launch UUID. |
66
-
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR', 'FILE', 'ENVIRONMENT'. Works only if `launchUuidPrint` set to `true`. File format: `rp-launch-uuid-${launch_uuid}.tmp`. Env variable: `RP_LAUNCH_UUID`. |
67
-
| token | Deprecated | Not set | Use `apiKey` instead. |
123
+
| launchUuidPrint | Optional | false | Whether to print the current launch UUID. |
124
+
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR', 'FILE', 'ENVIRONMENT'. Works only if `launchUuidPrint` set to `true`. File format: `rp-launch-uuid-${launch_uuid}.tmp`. Env variable: `RP_LAUNCH_UUID`. |
125
+
| token | Deprecated | Not set | Use `apiKey`or `oauth`instead.|
0 commit comments