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 (*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.
Click to show internal directories.
Click to hide internal directories.