challenges

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 21 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