Documentation
¶
Overview ¶
FILE: internal/webhook/auth/basic.go
FILE: internal/webhook/auth/bearer.go
FILE: internal/webhook/auth/hmac.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator valida a autenticidade de um webhook
type BasicAuthenticator ¶
type BasicAuthenticator struct {
// contains filtered or unexported fields
}
func NewBasicAuthenticator ¶
func NewBasicAuthenticator(username, password string) *BasicAuthenticator
func (*BasicAuthenticator) Authenticate ¶
func (a *BasicAuthenticator) Authenticate(r *http.Request) error
type BearerAuthenticator ¶
type BearerAuthenticator struct {
// contains filtered or unexported fields
}
func NewBearerAuthenticator ¶
func NewBearerAuthenticator(token, headerName string) *BearerAuthenticator
func (*BearerAuthenticator) Authenticate ¶
func (a *BearerAuthenticator) Authenticate(r *http.Request) error
type HMACAuthenticator ¶
type HMACAuthenticator struct {
// contains filtered or unexported fields
}
func NewHMACAuthenticator ¶
func NewHMACAuthenticator(secret, headerName, sigType string) *HMACAuthenticator
func (*HMACAuthenticator) Authenticate ¶
func (a *HMACAuthenticator) Authenticate(r *http.Request) error
Click to show internal directories.
Click to hide internal directories.