Documentation ¶
Index ¶
- func SSIKitCreateDID(custodianURL string, v *vault.Vault, userid string) (string, error)
- type CredentialSummary
- type EmployeeCredentialData
- type Manager
- func (m *Manager) ConvertToMap(credIn *EmployeeCredentialData) (map[string]any, error)
- func (m *Manager) CreateServiceCredential(credIn map[string]any) (string, []byte, error)
- func (m *Manager) GetAllCredentials() ([]CredentialSummary, error)
- func (m *Manager) GetCredential(credID string) (claims string, err error)
- func (m *Manager) GetCredentialLD(credID string) (claims string, err error)
- func (m *Manager) User() *User
- type RoleForTarget
- type User
- func (u *User) Create(name string, displayName string) (*User, error)
- func (u *User) CredentialExcludeList() []protocol.CredentialDescriptor
- func (u *User) GetByName(name string) (*User, error)
- func (u *User) GetOrCreate(name string, displayName string) (*User, error)
- func (u *User) WebAuthnCredentials() []webauthn.Credential
- func (u User) WebAuthnDisplayName() string
- func (u User) WebAuthnID() []byte
- func (u User) WebAuthnIcon() string
- func (u User) WebAuthnName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialSummary ¶
type CredentialSummary struct {
Id string `json:"id,omitempty"`
}
type EmployeeCredentialData ¶
type EmployeeCredentialData struct { Jti string `json:"jti,omitempty" yaml:"jti" mapstructure:"jti"` CredName string `json:"cred_name,omitempty" mapstructure:"credName"` CredType string `json:"cred_type,omitempty" mapstructure:"credType"` IssuerDID string `json:"iss,omitempty" mapstructure:"issuerDID"` SubjectDID string `json:"did,omitempty" mapstructure:"subjectDID"` Name string `json:"name,omitempty" mapstructure:"name"` Given_name string `json:"given_name,omitempty" mapstructure:"given_name"` Family_name string `json:"family_name,omitempty" mapstructure:"family_name"` Preferred_username string `json:"preferred_username,omitempty" mapstructure:"preferred_username"` Email string `json:"email,omitempty" mapstructure:"email"` Target string `json:"target,omitempty"` Roles string `json:"roles,omitempty"` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) ConvertToMap ¶
func (m *Manager) ConvertToMap(credIn *EmployeeCredentialData) (map[string]any, error)
func (*Manager) CreateServiceCredential ¶
func (*Manager) GetAllCredentials ¶
func (m *Manager) GetAllCredentials() ([]CredentialSummary, error)
func (*Manager) GetCredential ¶
func (*Manager) GetCredentialLD ¶
type RoleForTarget ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User represents the user model It implements the webauthn.User interface
func (*User) CredentialExcludeList ¶
func (u *User) CredentialExcludeList() []protocol.CredentialDescriptor
CredentialExcludeList returns a CredentialDescriptor array filled with all a user's credentials
func (*User) GetOrCreate ¶
func (*User) WebAuthnCredentials ¶
func (u *User) WebAuthnCredentials() []webauthn.Credential
WebAuthnCredentials returns credentials owned by the user
func (User) WebAuthnDisplayName ¶
WebAuthnDisplayName returns the user's display name
func (User) WebAuthnIcon ¶
WebAuthnIcon is not (yet) implemented
func (User) WebAuthnName ¶
WebAuthnName returns the user's username
Click to show internal directories.
Click to hide internal directories.