You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Atridad Lahiji c8a280daec Update 'README.md' 1 month ago
.env.example 0.0.3 1 month ago
.gitignore 0.0.1 1 month ago
README.md Update 'README.md' 1 month ago
build.sh Missed the version bump 1 month ago
go.mod 0.0.2 1 month ago
go.sum 0.0.1 1 month ago
main.go 0.0.3 1 month ago

README.md

MiddleWhere

MiddleWhere is an open source endpoint Auth Header -> Query String Token proxy in Golang.

Use cases

  1. You have a secured endpoint you would like to publicly expose without exposing your secure auth token
  2. You would like to have an application make a request to a secure endpoint but have no place to add an auth bearer token

Default config

ENDPOINT_URL="https://google.com"
ENDPOINT_AUTH_TOKEN=
ENDPOINT_REQUST_METHOD=POST
SECURE_TOKEN=

Our use case:

W use directus for the CMS for a number of our sites, but they also use a static site generator. So we have a webhook that sends a POST request to DroneCI to re-build the site with the new data. Directus webhooks do not let you set an auth header, so we needed a way to include a token in a querystring within the URL. This is our solution.