auth

package
v0.0.0-...-1ab8029 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateConsumer

func AuthenticateConsumer(request *http.Request, consumerMrn string) (x509.SignatureAlgorithm, bool, error)

func GetMrnFromCertificate

func GetMrnFromCertificate(cert *x509.Certificate) string

func VerifySignatureOnMessage

func VerifySignatureOnMessage(mmtpMessage *mmtp.MmtpMessage, signatureAlgorithm x509.SignatureAlgorithm, request *http.Request) error

Types

type AuthenticationErr

type AuthenticationErr struct {
	Msg string
}

func (*AuthenticationErr) Error

func (e *AuthenticationErr) Error() string

type CertValErr

type CertValErr struct {
	AuthenticationErr
}

CertValErr Define error types

type MrnMismatchErr

type MrnMismatchErr struct {
	AuthenticationErr
}

type SigAlgErr

type SigAlgErr struct {
	AuthenticationErr
}

Jump to

Keyboard shortcuts

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