Documentation
¶
Index ¶
- func CheckSignature(pub crypto.PublicKey, proof []byte, email string) error
- type AdditionalInfo
- type ChallengeResult
- func Email(ctx context.Context, principal *oidc.IDToken, pubKey crypto.PublicKey, ...) (*ChallengeResult, error)
- func GithubWorkflow(ctx context.Context, principal *oidc.IDToken, pubKey crypto.PublicKey, ...) (*ChallengeResult, error)
- func Kubernetes(ctx context.Context, principal *oidc.IDToken, pubKey crypto.PublicKey, ...) (*ChallengeResult, error)
- func Spiffe(ctx context.Context, principal *oidc.IDToken, pubKey crypto.PublicKey, ...) (*ChallengeResult, error)
- type ChallengeType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdditionalInfo ¶ added in v0.2.0
type AdditionalInfo int
const ( GithubWorkflowTrigger AdditionalInfo = iota GithubWorkflowSha GithubWorkflowName GithubWorkflowRepository GithubWorkflowRef )
Additional information that can be added as a cert extension.
type ChallengeResult ¶
type ChallengeResult struct {
Issuer string
TypeVal ChallengeType
PublicKey crypto.PublicKey
Value string
// Extra information from the token that can be added to extensions.
AdditionalInfo map[AdditionalInfo]string
}
func GithubWorkflow ¶ added in v0.2.0
func Kubernetes ¶ added in v0.2.0
type ChallengeType ¶
type ChallengeType int
const ( EmailValue ChallengeType = iota SpiffeValue GithubWorkflowValue KubernetesValue )
Click to show internal directories.
Click to hide internal directories.