challenges

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 18 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, subject string) error

CheckSignature verifies a challenge, a signature over the subject or email of an OIDC token

func ParsePublicKey added in v0.4.0

func ParsePublicKey(encodedPubKey string) (crypto.PublicKey, error)

ParsePublicKey parses a PEM or DER encoded public key. Returns an error if decoding fails or if no public key is found.

func PrincipalFromIDToken added in v0.5.0

func PrincipalFromIDToken(ctx context.Context, tok *oidc.IDToken) (identity.Principal, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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