issuer

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCClientParams added in v0.1.6

type OIDCClientParams struct {
	ClientID     string `json:"clientID"`
	ClientSecret string `json:"clientSecret"`
	SecretExpiry int    `json:"SecretExpiry"`
}

OIDCClientParams optional set of oidc client parameters that the issuer may set, for static client registration.

type Profile

type Profile struct {
	// contains filtered or unexported fields
}

Profile db operation.

func New

func New(provider storage.Provider) (*Profile, error)

New returns new issuer profile instance.

func (*Profile) GetProfile

func (c *Profile) GetProfile(id string) (*ProfileData, error)

GetProfile retrieves the profile data based on id.

func (*Profile) SaveProfile

func (c *Profile) SaveProfile(data *ProfileData) error

SaveProfile saves the profile data.

type ProfileData

type ProfileData struct {
	ID                          string            `json:"id,omitempty"`
	Name                        string            `json:"name"`
	URL                         string            `json:"url"`
	SupportedVCContexts         []string          `json:"supportedVCContexts"`
	SupportsAssuranceCredential bool              `json:"supportsAssuranceCredential"`
	RequiresBlindedRoute        bool              `json:"requiresBlindedRoute"`
	CredentialSigningKey        string            `json:"credentialSigningKey"`
	PresentationSigningKey      string            `json:"presentationSigningKey"`
	CreatedAt                   *time.Time        `json:"createdAt"`
	SupportsWACI                bool              `json:"supportsWACI"`
	OIDCProviderURL             string            `json:"oidcProvider"`
	OIDCClientParams            *OIDCClientParams `json:"oidcParams,omitempty"`
	CredentialScopes            []string          `json:"credScopes,omitempty"`
	LinkedWalletURL             string            `json:"linkedWallet,omitempty"`
	IssuerID                    string            `json:"issuerID,omitempty"`
	CMStyle                     cm.Styles         `json:"styles,omitempty"`
	PublicDID                   string            `json:"publicDID,omitempty"`
	IsDIDCommV1                 bool              `json:"isDIDCommV1,omitempty"`
}

ProfileData struct for profile. Issuer ID identifies who is the issuer of the credential manifests being issued. CMStyle represents an entity styles object as defined in credential manifest spec.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL