Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "jwt" Type = "https://witness.dev/attestations/jwt/v0.1" RunType = attestation.PreMaterialRunType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestor ¶
type Attestor struct { Claims map[string]interface{} `json:"claims"` VerifiedBy VerificationInfo `json:"verifiedBy,omitempty"` // contains filtered or unexported fields }
func (*Attestor) Attest ¶
func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
func (*Attestor) RunType ¶
func (a *Attestor) RunType() attestation.RunType
type ErrInvalidToken ¶
type ErrInvalidToken string
func (ErrInvalidToken) Error ¶
func (e ErrInvalidToken) Error() string
type VerificationInfo ¶
type VerificationInfo struct { JWKSUrl string `json:"jwksUrl"` JWK jose.JSONWebKey `json:"jwk"` }
Click to show internal directories.
Click to hide internal directories.