Documentation ¶
Index ¶
- Variables
- func EventFromAuthRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)
- func EventFromLoginRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)
- func EventFromLogoutRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)
- func EventFromSubRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) (e *model.RequestEvent)
- func Execute()
- func FindPublicKey() *rsa.PublicKey
- func GetTokenFromRequest(r *http.Request, mngr *stats.Manager, config *conf.GlobalConfig) *model.Token
- func StartAPI(config *conf.GlobalConfig, discovery *conf.DiscoveryLdap, mngr *stats.Manager) (*http.Server, chan bool)
- func StartHTTP(config *conf.GlobalConfig, discovery *conf.DiscoveryLdap, mngr *stats.Manager) (*http.Server, chan bool)
- func TestParseJwt(token_s string, key *rsa.PublicKey) (*jwt.Token, error)
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 FindPublicKey ¶
func GetTokenFromRequest ¶
func StartAPI ¶
func StartAPI(config *conf.GlobalConfig, discovery *conf.DiscoveryLdap, mngr *stats.Manager) (*http.Server, chan bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.