package
3.0.0+incompatible
Repository: https://github.com/buzzfeed/sso.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
GetActionTag returns the action triggered by an http.Request .
LoadConfig loads all the configuration from env and defaults.
No description provided by the author
NewLoggingHandler returns a new loggingHandler that wraps a handler, statsd client, and writer.
NewOAuthProxy creates a new OAuthProxy struct.
NewRequestSigner constructs a RequestSigner object from a PEM+PKCS8 encoded RSA public key.
newStatsdClient creates and returns a statsd client on a host and port that is namespaced to 'sso_proxy'.
NewUpstreamReverseProxy implements our reverse proxy behavior for each upstream.
SetCookieStore sets the session and csrf stores as a functional option.
SetProvider sets the provider as a functional option.
SetProxyHandler sets the proxy handler as a functional option.
SetRequestSigner sets the request signer as a functional option.
SetStatsdClient sets the statsd client as a functional option.
SetUpstreamConfig sets the upstream config as a functional option.
No description provided by the author
SetValidator sets the email validator as a functional option.

# Constants

HMACSignatureHeader is the header name where the signed request header is stored.
VERSION is the version of sso proxy.

# Variables

Errors.
Errors.
Errors.
Errors.
SignatureHeaders are the headers that are valid in the request.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Director implements the Director func provided in the httputil reverse proxy.
No description provided by the author
No description provided by the author
ErrParsingConfig is an error specific to config parsing.
No description provided by the author
No description provided by the author
OAuthProxy stores all the information associated with proxying the request.
OptionsConfig maps to the yaml config fields: * header_overrides - overrides any heads set either by sso proxy itself or upstream applications.
No description provided by the author
No description provided by the author
RequestSigner exposes an interface for digitally signing requests using an RSA private key.
No description provided by the author
RewriteRoute contains a FromRegex and ToTemplate used to construct rewrite routes in the reverse proxy.
RouteConfig maps to the yaml config fields, * "from" - the domain that will be used to access the service * "to" - the cname of the proxied service (this tells sso proxy where to proxy requests that come in on the from field).
No description provided by the author
ServiceConfig represents the configuration for a given service.
No description provided by the author
SimpleRoute contains a FromURL and ToURL used to construct simple routes in the reverse proxy.
No description provided by the author
StateParameter holds the redirect id along with the session id.
No description provided by the author
No description provided by the author
No description provided by the author
UpstreamConfig represents the configuration for a given cluster in a given service.
No description provided by the author

# Interfaces

No description provided by the author