Help us shape the future of Go! Take the 2026 Go Developer Survey

authentication

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVerifier

func NewVerifier(k *rsa.PublicKey) verifier

Types

type Signer

type Signer interface {
	Verifier
	GetIssuerName() string
	GetSigningKey() *rsa.PrivateKey
	SignJWT(jwtToken *jwt.Token) (string, error)
	SignJWS(content interface{}, now time.Time, duration time.Duration) (string, error)
}

func NewSigner

func NewSigner(issuer string, k []byte) (Signer, error)

type Verifier

type Verifier interface {
	VerifyJWT(token *jwt.Token) (interface{}, error)
	VerifyJWS(signature string, content interface{}) error
	GetVerifyKey() *rsa.PublicKey
}

Jump to

Keyboard shortcuts

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