Documentation
¶
Index ¶
- func Init(certPath, addr string, port int, insecure bool)
- func InitWithOpts(certPath, addr string, port int, insecure bool, opts []grpc.DialOption)
- type User
- func (u *User) AddCredential(cred webauthn.Credential)
- func (u *User) AllocateCloudAgent(adminID string, timeout time.Duration) (err error)
- func (u User) CredentialExcludeList() []protocol.CredentialDescriptor
- func (u User) Data() []byte
- func (u User) JWT() string
- func (u User) Key() []byte
- 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 ¶
func InitWithOpts ¶
func InitWithOpts(certPath, addr string, port int, insecure bool, opts []grpc.DialOption)
Types ¶
type User ¶
type User struct { ID uint64 Name string // full email address PublicDIDSeed string // seed for the public DID DisplayName string // shortened version of the Name DID string //JWT string // remove this from here and make a method Credentials []webauthn.Credential }
User represents the user model
func NewFromData ¶ added in v0.2.71
func (*User) AddCredential ¶
func (u *User) AddCredential(cred webauthn.Credential)
AddCredential associates the credential to the user
func (*User) AllocateCloudAgent ¶
AllocateCloudAgent allocates new cloud agent from the agency. adminID is part of the security for the current agency ecosystem. It must match what's configured to server side i.e. agency.
func (User) CredentialExcludeList ¶
func (u User) CredentialExcludeList() []protocol.CredentialDescriptor
CredentialExcludeList returns a CredentialDescriptor array filled with all the user's credentials
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.