Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bearer-proxy

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bearer-proxy

A simple HTTP proxy server that adds an Authorization header to outgoing requests.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
Source

Bearer Proxy

Bearer Proxy is a simple HTTP proxy server that adds an Authorization header to outgoing requests. This can be useful for testing or development environments where you need to forward requests with an authentication token.

Installation

To install Bearer Proxy from the NPM repository, run the following command:

npm install -g bearer-proxy

Usage

To start the proxy server, use the following command:

bearer-proxy --token <YOUR_AUTH_TOKEN> --target <TARGET_URL> [--port <LISTEN_PORT>]

Options

  • --token, -t: (Required) The authentication token to be added to the Authorization header.
  • --target, -u: (Required) The target URL to which the requests should be forwarded.
  • --port, -p: (Optional) The port on which the proxy server will listen. Default is 8000.

Examples

bearer-proxy --token mysecrettoken --target http://example.com --port 8080

This command will start the proxy server on port 8080 and forward all requests to http://example.com with the Authorization: Bearer mysecrettoken header.

TOKEN=$(oc whoami -t)
TARGET=https://forklift-inventory-openshift-mtv.apps-crc.testing

bearer-proxy --token "$TOKEN" --target "$TARGET" --port 8080

INVENTORY_SERVER_HOST=http://127.0.0.1:8080

This example will add an Openshit bearer token to the forklift inventory service.

License

This project is licensed under the GPL-3.0 License.

FAQs

Package last updated on 05 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc