Documentation ¶
Index ¶
- Constants
- func DeleteCipher(ctx context.Context, uuid string, cfg *config.Config) error
- func DoFullSync(ctx context.Context, vault *vault.Vault, config *config.Config, ...) error
- func Fido2TwoFactor(challengeB64 string, credentials []string, config *config.Config) (string, error)
- func GetCipher(ctx context.Context, uuid string, cfg *config.Config) (models.Cipher, error)
- func PostCipher(ctx context.Context, cipher models.Cipher, cfg *config.Config) (models.Cipher, error)
- func PutAuthRequest(ctx context.Context, requestUUID string, authRequest AuthRequestData, ...) error
- func PutCipher(ctx context.Context, uuid string, cipher models.Cipher, cfg *config.Config) (models.Cipher, error)
- func ReadVault(path string) (models.SyncData, error)
- func RefreshToken(ctx context.Context, cfg *config.Config) bool
- func RunWebsocketDaemon(ctx context.Context, vault *vault.Vault, cfg *config.Config)
- func Sync(ctx context.Context, config *config.Config) (models.SyncData, error)
- func WriteVault(data models.SyncData, path string) error
- type AuthRequestData
- type AuthRequestResponseData
- type AuthToken
- type Fido2Response
- type LoginResponseToken
- type NotificationMessageType
- type TwoFactorProvider
- type TwoFactorResponse
Constants ¶
View Source
const (
WEBSOCKET_SLEEP_DURATION_SECONDS = 5
)
Variables ¶
This section is empty.
Functions ¶
func DoFullSync ¶
func Fido2TwoFactor ¶
func PostCipher ¶
func PutAuthRequest ¶
func RunWebsocketDaemon ¶
Types ¶
type AuthRequestData ¶
type AuthRequestData struct { CreationDate time.Time `json:"creationDate"` ID string `json:"id"` Key string `json:"key"` MasterPasswordHash string `json:"masterPasswordHash"` Object string `json:"object"` Origin string `json:"origin"` PublicKey string `json:"publicKey"` RequestApproved bool `json:"requestApproved"` RequestDeviceType string `json:"requestDeviceType"` RequestIpAddress string `json:"requestIpAddress"` ResponseDate time.Time `json:"responseDate"` }
func GetAuthRequest ¶
func GetAuthRequests ¶
type AuthRequestResponseData ¶
type AuthRequestResponseData struct { DeviceIdentifier string `json:"deviceIdentifier"` Key string `json:"key"` MasterPasswordHash string `json:"masterPasswordHash"` Requestapproved bool `json:"requestApproved"` }
func CreateAuthResponse ¶
func CreateAuthResponse(ctx context.Context, authRequest AuthRequestData, keyring *crypto.Keyring, config *config.Config) (AuthRequestResponseData, error)
type Fido2Response ¶
type Fido2Response struct { Id string `json:"id"` RawId string `json:"rawId"` Type_ string `json:"type"` Extensions struct { Appid bool `json:"appid"` } `json:"extensions"` Response struct { AuthenticatorData string `json:"authenticatorData"` ClientDataJSON string `json:"clientDataJson"` Signature string `json:"signature"` } `json:"response"` }
type LoginResponseToken ¶
type NotificationMessageType ¶
type NotificationMessageType int64
const ( SyncCipherUpdate NotificationMessageType = 0 SyncCipherCreate NotificationMessageType = 1 SyncLoginDelete NotificationMessageType = 2 SyncFolderDelete NotificationMessageType = 3 SyncCiphers NotificationMessageType = 4 SyncVault NotificationMessageType = 5 SyncOrgKeys NotificationMessageType = 6 SyncFolderCreate NotificationMessageType = 7 SyncFolderUpdate NotificationMessageType = 8 SyncCipherDelete NotificationMessageType = 9 SyncSettings NotificationMessageType = 10 LogOut NotificationMessageType = 11 SyncSendCreate NotificationMessageType = 12 SyncSendUpdate NotificationMessageType = 13 SyncSendDelete NotificationMessageType = 14 AuthRequest NotificationMessageType = 15 AuthRequestResponse NotificationMessageType = 16 )
type TwoFactorProvider ¶
type TwoFactorProvider int
const ( Authenticator TwoFactorProvider = 0 Email TwoFactorProvider = 1 Duo TwoFactorProvider = 2 //Not supported YubiKey TwoFactorProvider = 3 //Not supported U2f TwoFactorProvider = 4 //Not supported Remember TwoFactorProvider = 5 //Not supported OrganizationDuo TwoFactorProvider = 6 //Not supported WebAuthn TwoFactorProvider = 7 )
func (*TwoFactorProvider) UnmarshalText ¶
func (t *TwoFactorProvider) UnmarshalText(text []byte) error
type TwoFactorResponse ¶
type TwoFactorResponse struct {
TwoFactorProviders2 map[TwoFactorProvider]map[string]interface{}
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.