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
Some Remote WebDriver Servers requires OAuth authorization for each request. This plugin is useful for setting of authorization header with OAuth token.
4
4
5
5
## Install
6
6
7
7
```bash
8
-
npm install hermione-oauth --save-dev
8
+
npm install @testplane/oauth --save-dev
9
9
```
10
10
11
11
## Usage
12
12
13
13
```js
14
-
// .hermione.conf.js
14
+
// .testplane.conf.js
15
15
module.exports= {
16
16
// ...
17
17
plugins: {
18
-
"hermione-oauth": {
18
+
"@testplane/oauth": {
19
19
enabled:true, // plugin is enabled by default
20
20
token:"<token>", // option also accepts absolute filepath with a token
21
21
help:"https://...", // information on where to get a token
@@ -25,5 +25,5 @@ module.exports = {
25
25
```
26
26
27
27
Each plugin option can be redefined by
28
-
- environment variable which starts with prefix `hermione_oauth_`, for example, `hermione_oauth_token=123-456-789`
28
+
- environment variable which starts with prefix `testplane_oauth_`, for example, `testplane_oauth_token=123-456-789`
29
29
- CLI option which starts with prefix `--oauth-`, for example, `--oauth-token=123-456-789`
0 commit comments