challenges

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSignature

func CheckSignature(pub crypto.PublicKey, proof []byte, email string) error

Types

type ChallengeResult

type ChallengeResult struct {
	TypeVal ChallengeType
	Value   string
}

func Email

func Email(ctx context.Context, principal *oidc.IDToken, pubKey, challenge []byte) (*ChallengeResult, error)

func Spiffe

func Spiffe(ctx context.Context, principal *oidc.IDToken, pubKey, challenge []byte) (*ChallengeResult, error)

type ChallengeType

type ChallengeType int
const (
	EmailValue ChallengeType = iota
	SpiffeValue
)

Jump to

Keyboard shortcuts

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