Documentation ¶
Overview ¶
Package identifier provides handlers for associating identity information with incoming requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCertificates ¶ added in v0.50.0
func ClientCertificates(r *http.Request) ([]*x509.Certificate, bool)
ClientCertificates returns the ClientCertificates of the caller associated with ctx.
func SetClientCertificates ¶ added in v0.50.0
SetClientCertificates returns a new http.Request with the ClientCertificates set to v.
Types ¶
type TLSBased ¶ added in v0.10.3
type TLSBased struct {
// contains filtered or unexported fields
}
TLSBased extracts the CN of the client's TLS ceritificate
func NewTLSBased ¶ added in v0.10.3
NewTLSBased returns a new TLSBased object.
type TokenBased ¶
type TokenBased struct {
// contains filtered or unexported fields
}
TokenBased extracts Bearer tokens from the request.
func NewTokenBased ¶
func NewTokenBased(inner http.Handler) *TokenBased
NewTokenBased returns a new TokenBased object.
func (*TokenBased) ServeHTTP ¶
func (h *TokenBased) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.