cmd

package
v0.0.0-...-c8fbfac Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDir string
View Source
var ConsulAddr string
View Source
var ConsulDatacenter string
View Source
var ConsulLdapDatacenter string
View Source
var ConsulLdapServiceName string
View Source
var ConsulLdapTag string
View Source
var ConsulPrefix string
View Source
var ConsulToken string
View Source
var LogFilename string
View Source
var LogInJSON bool
View Source
var LogLevel string
View Source
var PidFilename string
View Source
var RequestLogFilename string
View Source
var RequestLogLevel string
View Source
var RootCmd = &cobra.Command{
	Use:   "bouncer",
	Short: "Authentication with LDAP backend for nginx",
	Long: `bouncer implements authentication with an LDAP backend for Nginx.
	It uses 'ngx_http_auth_request_module' module to perform the authentication.`,
}
View Source
var Syslog bool

Functions

func EventFromAuthRequest

func EventFromAuthRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)

EventFromAuthRequest deals with the /auth API service

func EventFromLoginRequest

func EventFromLoginRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)

EventFromLoginRequest deals with interactive form login requests

func EventFromLogoutRequest

func EventFromLogoutRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)

EventFromLogoutRequest deals with interactive logout requests

func EventFromSubRequest

func EventFromSubRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)

EventFromSubRequest deals with subrequests from Nginx

func Execute

func Execute()

func FindPublicKey

func FindPublicKey() *rsa.PublicKey

func GetTokenFromRequest

func GetTokenFromRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) *model.Token

func StartAPI

func StartAPI(config *conf.GlobalConfig, discovery *conf.DiscoveryLdap, mngr *stats.Manager) (*http.Server, chan bool)

func StartHTTP

func StartHTTP(config *conf.GlobalConfig, discovery *conf.DiscoveryLdap, mngr *stats.Manager) (*http.Server, chan bool)

func TestParseJwt

func TestParseJwt(token_s string, key *rsa.PublicKey) (*jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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