auth

package
v0.0.0-...-77c6198 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

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

type Authenticator interface {
	Authenticate(r *http.Request) error
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL