auth-proxy-server

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 20 Imported by: 0

README

auth-proxy-server

A basic implementation of OAuth OIDC based auth proxy server. To run it use the following:

# to build
go build proxy_auth_server.go

# to run in k8s
cat > config.json << EOF
{
    "base": "",
    "client_id": "xxx",
    "client_secret": "xxx-yyy-zzz"
    "oauth_url": "https://auth.cern.ch/auth/realms/cern",
    "server_cert": "/etc/secrets/tls.crt",
    "server_key": "/etc/secrets/tls.key",
    "redirect_url": "redirect_url",
    "hmac": "/etc/secrets/hmac",
    "document_root": "/www",
    "cric_url": "cric_url",
    "cms_headers": true,
    "update_cric": 3600,
    "ingress": [
        {"path":"/path", "service_url":"http://srv.namespace.svc.cluster.local:<port>"}
    ],
    "verbose": false,
    "port": 8181
}
EOF
proxy_auth_server -config config.json

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
auth module
cric module
grpc module
logging module

Jump to

Keyboard shortcuts

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