signapi

package
v0.0.0-...-b0d25e1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxAuthContextChainLength = 8
)
View Source
const (
	TokenLifeSecs = 120
)

Variables

View Source
var Log = logging.GetLogger("signapi").WithField("pkg", "signapi")

Functions

This section is empty.

Types

type AuthenticatorListEntry

type AuthenticatorListEntry struct {
	Authenticator auth.Authenticator
	Default       bool
}

type SignApi

type SignApi struct {
	// contains filtered or unexported fields
}

func New

func New(
	authList []AuthenticatorListEntry,
	signer *keysigner.KeySignerService,
	tkey []byte,
	defaultlife time.Duration,
	maxlife time.Duration,
	caChallengeLife time.Duration,
) *SignApi

func (*SignApi) HandleAddKey

func (sa *SignApi) HandleAddKey(c echo.Context) error

func (*SignApi) HandleAuthCallback

func (sa *SignApi) HandleAuthCallback(c echo.Context) error

func (*SignApi) HandleAuthDiscover

func (sa *SignApi) HandleAuthDiscover(c echo.Context) error

func (*SignApi) HandleCaChallenge

func (sa *SignApi) HandleCaChallenge(c echo.Context) error

func (*SignApi) HandleGetKey

func (sa *SignApi) HandleGetKey(c echo.Context) error

func (*SignApi) HandleLogin

func (sa *SignApi) HandleLogin(c echo.Context) error

func (*SignApi) HandleReady

func (sa *SignApi) HandleReady(c echo.Context) error

func (*SignApi) HandleSign

func (sa *SignApi) HandleSign(c echo.Context) error

func (*SignApi) LoginUserPasswordAuthSkipper

func (sa *SignApi) LoginUserPasswordAuthSkipper(c echo.Context) bool

func (*SignApi) RegisterRoutes

func (sa *SignApi) RegisterRoutes(g *echo.Group)

type SignClaim

type SignClaim struct {
	AuthContext *auth.AuthContext
	jwt.RegisteredClaims
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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