Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gemini-testing/testplane-oauth

Testplane plugin for authorization with OAuth
https://github.com/gemini-testing/testplane-oauth

testplane-plugin

Last synced: 9 days ago
JSON representation

Testplane plugin for authorization with OAuth

Awesome Lists containing this project

README

        

# @testplane/oauth

Some Remote WebDriver Servers requires OAuth authorization for each request. This plugin is useful for setting of authorization header with OAuth token.

## Install

```bash
npm install @testplane/oauth --save-dev
```

## Usage

```js
// .testplane.conf.js
module.exports = {
// ...
plugins: {
"@testplane/oauth": {
enabled: true, // plugin is enabled by default
token: "", // option also accepts absolute filepath with a token
help: "https://...", // information on where to get a token
},
},
};
```

Each plugin option can be redefined by
- environment variable which starts with prefix `testplane_oauth_`, for example, `testplane_oauth_token=123-456-789`
- CLI option which starts with prefix `--oauth-`, for example, `--oauth-token=123-456-789`