authenticator

package
v0.0.0-...-91f88f6 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(req *http.Request, authenticator cbauth.Authenticator)

func DefaultAuthHandler

func DefaultAuthHandler(req *http.Request)

func GenerateLocalIDs

func GenerateLocalIDs() (string, string, error)

func GetClusterAuth

func GetClusterAuth() (string, string)

func GetMemcachedServiceAuth

func GetMemcachedServiceAuth(url string) (user string, passwd string, err error)

func InitAuthenticator

func InitAuthenticator(url string)

InitAuthenticator initilaise the authenticator module Should call this method before any other method is invoked TODO: Maybe use some other better way to set it

func ServiceHttpAuth

func ServiceHttpAuth(clusterURL string) (user string, passwd string, err error)

func StripScheme

func StripScheme(endpoint string) string

func TestSetUserPassword

func TestSetUserPassword(user, password string)

For testing purpose only

func VerifyClientAuth

func VerifyClientAuth(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

VerifyClientAuth validates the peer certificate against the cluster's clientAuth CRL policy. Use it on inbound TLS listeners, where Eventing is verifying a certificate that a client presented to it.

func VerifyNodeToNode

func VerifyNodeToNode(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

VerifyNodeToNode validates the peer certificate against the cluster's nodeToNode CRL policy. Use it on outbound connections that Eventing dials to other Couchbase nodes, where Eventing is verifying the remote server's certificate.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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