go-authproxy

command module
v0.0.0-...-95e9513 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

README

go-authproxy

This is a proxy which can

  • require the client use basic authentication
  • require the client go through a captive portal

Installation

$ 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:

# terminal A
$ go-authproxy -basic-auth user:pass # interrupt (e.g. <c-c>) to shutdown
# terminal B
$ chrome --proxy-server="127.0.0.1:8080"

More examples

# 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL