Documentation
¶
Index ¶
- func CheckSignature(pub crypto.PublicKey, proof []byte, subject string) error
- func CheckSignatureWithVerifier(verifier signature.Verifier, proof []byte, subject string) error
- func ParsePublicKey(encodedPubKey string) (crypto.PublicKey, error)
- func PrincipalFromIDToken(ctx context.Context, tok *oidc.IDToken) (identity.Principal, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSignature ¶
CheckSignature verifies a challenge, a signature over the subject or email of an OIDC token
func CheckSignatureWithVerifier ¶ added in v1.7.0
CheckSignatureWithVerifier verifies a challenge, a signature over the subject or email of an OIDC token
func ParsePublicKey ¶ added in v0.4.0
ParsePublicKey parses a PEM or DER encoded public key. Returns an error if decoding fails or if no public key is found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.