||1 month ago|
|.env.example||1 month ago|
|.gitignore||1 month ago|
|README.md||1 month ago|
|build.sh||1 month ago|
|go.mod||1 month ago|
|go.sum||1 month ago|
|main.go||1 month ago|
MiddleWhere is an open source endpoint Auth Header -> Query String Token proxy in Golang.
- You have a secured endpoint you would like to publicly expose without exposing your secure auth token
- You would like to have an application make a request to a secure endpoint but have no place to add an auth bearer token
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.