Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gemini-testing/testplane-oauth
- Owner: gemini-testing
- Created: 2022-06-27T15:25:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T14:06:18.000Z (10 months ago)
- Last Synced: 2025-01-02T04:06:29.602Z (21 days ago)
- Topics: testplane-plugin
- Language: TypeScript
- Homepage:
- Size: 262 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`