Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAttachments ¶
Types ¶
type AttestationService ¶
type AttestationService interface {
GetAttestation(ctx context.Context, req attestation.GetAttestationRequest) (string, error)
}
type ClientMetadata ¶
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
func (*Flow) CreateVPToken ¶
func (f *Flow) CreateVPToken( presentations []*verifiable.Presentation, requestObject *RequestObject, ) ([]string, error)
type IDTokenClaims ¶
type IDTokenClaims struct { // ScopeAdditionalClaims stores claims retrieved using custom scope. ScopeAdditionalClaims map[string]Claims `json:"_scope,omitempty"` //custom scope -> additional claims AttestationVP string `json:"_attestation_vp"` Nonce string `json:"nonce"` Exp int64 `json:"exp"` Iss string `json:"iss"` Aud string `json:"aud"` Sub string `json:"sub"` Nbf int64 `json:"nbf"` Iat int64 `json:"iat"` Jti string `json:"jti"` Attachments map[string]string `json:"_attachments"` }
type Opt ¶
type Opt func(opts *options)
func WithDomainMatchingDisabled ¶
func WithDomainMatchingDisabled() Opt
func WithLinkedDomainVerification ¶
func WithLinkedDomainVerification() Opt
func WithMultiVPs ¶
func WithMultiVPs() Opt
func WithRequestURI ¶
func WithSchemaValidationDisabled ¶
func WithSchemaValidationDisabled() Opt
func WithWalletDIDIndex ¶
type PerfInfo ¶
type PerfInfo struct { FetchRequestObject time.Duration `json:"vp_fetch_request_object"` VerifyAuthorizationRequest time.Duration `json:"vp_verify_authorization_request"` QueryCredentialFromWallet time.Duration `json:"vp_query_credential_from_wallet"` CreateAuthorizedResponse time.Duration `json:"vp_create_authorized_response"` SendAuthorizedResponse time.Duration `json:"vp_send_authorized_response"` VcsVPFlowDuration time.Duration `json:"_vcs_vp_flow_duration"` }
type RequestObject ¶
type RequestObject struct { JTI string `json:"jti"` IAT int64 `json:"iat"` ResponseType string `json:"response_type"` ResponseMode string `json:"response_mode"` ResponseURI string `json:"response_uri"` Scope string `json:"scope"` Nonce string `json:"nonce"` ClientID string `json:"client_id"` State string `json:"state"` Exp int64 `json:"exp"` ClientMetadata *ClientMetadata `json:"client_metadata"` PresentationDefinition *presexch.PresentationDefinition `json:"presentation_definition"` }
type TrustRegistry ¶
type TrustRegistry interface { ValidateVerifier( ctx context.Context, verifierDID, verifierDomain string, credentials []*verifiable.Credential, ) (bool, error) }
Click to show internal directories.
Click to hide internal directories.