Documentation ¶
Index ¶
- func ClientCertFromContext(ctx context.Context) *models.ClientCert
- func ClientCertFromRequestContext(r *http.Request) *models.ClientCert
- func ClientCertMiddleware(logger Logger, db *pop.Connection) func(next http.Handler) http.Handler
- func HostnameDetectorMiddleware(logger Logger, hostname string) func(next http.Handler) http.Handler
- func SetClientCertInRequestContext(r *http.Request, clientCert *models.ClientCert) context.Context
- type ApplicationServername
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCertFromContext ¶
func ClientCertFromContext(ctx context.Context) *models.ClientCert
ClientCertFromContext gets the reference to the ClientCert stored in the request.Context()
func ClientCertFromRequestContext ¶
func ClientCertFromRequestContext(r *http.Request) *models.ClientCert
ClientCertFromRequestContext gets the reference to the ClientCert stored in the request.Context()
func ClientCertMiddleware ¶
ClientCertMiddleware enforces that the incoming request includes a known client certificate, and stores the fetched permissions in the session
func HostnameDetectorMiddleware ¶
func HostnameDetectorMiddleware(logger Logger, hostname string) func(next http.Handler) http.Handler
HostnameDetectorMiddleware only allows the given hostname through
func SetClientCertInRequestContext ¶
SetClientCertInRequestContext returns a copy of the request's Context() with the client certificate data
Types ¶
type ApplicationServername ¶
type ApplicationServername struct {
OrdersServername string
}
ApplicationServername is a collection of all the servernames for the application
Click to show internal directories.
Click to hide internal directories.