Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobdufault/go-authproxy
Simple proxy for displaying basic authentication or a captive portal
https://github.com/jacobdufault/go-authproxy
Last synced: 7 days ago
JSON representation
Simple proxy for displaying basic authentication or a captive portal
- Host: GitHub
- URL: https://github.com/jacobdufault/go-authproxy
- Owner: jacobdufault
- License: apache-2.0
- Created: 2018-10-04T22:41:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-05T16:28:19.000Z (about 6 years ago)
- Last Synced: 2024-06-20T14:26:59.838Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-authproxy
This is a proxy which can
- require the client use basic authentication
- require the client go through a captive portal# Installation
```sh
$ go get -u github.com/jacobdufault/go-authproxy
$ go-authproxy -h # prints out help/usage
```# Examples
Force chrome to show basic authentication proxy connection UI:
```sh
# terminal A
$ go-authproxy -basic-auth user:pass # interrupt (e.g. ) to shutdown
# terminal B
$ chrome --proxy-server="127.0.0.1:8080"
```## More examples
```sh
# Require a captive portal
$ go-authproxy -captive-portal# Require basic authentication
$ go-authproxy -basic-auth user:pass# Require both
$ go-authproxy -basic-auth user:pass -captive-portal# Basic auth on port 8080
$ go-authproxy -basic-auth -port 8080
```## Captive Portal Visibility
The captive portal is shown when a file called `dismiss-captive-portal` is
not present on disk in the current working directory. On startup,
go-authproxy automatically deletes this file. It can be manually deleted at
any time and the captive portal will be re-displayed.