session_handoff

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EncryptContext = "spacewave 2025-12-01 auth handoff v1."

EncryptContext is the context string for auth handoff session-key encryption.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandoffAck

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

HandoffAck is sent by the device to confirm receipt of the encrypted session key.

func (*HandoffAck) CloneMessageVT

func (m *HandoffAck) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HandoffAck) CloneVT

func (m *HandoffAck) CloneVT() *HandoffAck

func (*HandoffAck) EqualMessageVT

func (this *HandoffAck) EqualMessageVT(thatMsg any) bool

func (*HandoffAck) EqualVT

func (this *HandoffAck) EqualVT(that *HandoffAck) bool

func (*HandoffAck) MarshalJSON

func (x *HandoffAck) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HandoffAck to JSON.

func (*HandoffAck) MarshalProtoJSON

func (x *HandoffAck) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HandoffAck message to JSON.

func (*HandoffAck) MarshalProtoText

func (x *HandoffAck) MarshalProtoText() string

func (*HandoffAck) MarshalToSizedBufferVT

func (m *HandoffAck) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HandoffAck) MarshalToVT

func (m *HandoffAck) MarshalToVT(dAtA []byte) (int, error)

func (*HandoffAck) MarshalVT

func (m *HandoffAck) MarshalVT() (dAtA []byte, err error)

func (*HandoffAck) ProtoMessage

func (*HandoffAck) ProtoMessage()

func (*HandoffAck) Reset

func (x *HandoffAck) Reset()

func (*HandoffAck) SizeVT

func (m *HandoffAck) SizeVT() (n int)

func (*HandoffAck) String

func (x *HandoffAck) String() string

func (*HandoffAck) UnmarshalJSON

func (x *HandoffAck) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the HandoffAck from JSON.

func (*HandoffAck) UnmarshalProtoJSON

func (x *HandoffAck) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HandoffAck message from JSON.

func (*HandoffAck) UnmarshalVT

func (m *HandoffAck) UnmarshalVT(dAtA []byte) error

type HandoffCompletion

type HandoffCompletion struct {

	// EncryptedSessionKey is the session private key encrypted to the
	// device public key using bifrost EncryptToEd25519.
	EncryptedSessionKey []byte `protobuf:"bytes,1,opt,name=encrypted_session_key,json=encryptedSessionKey,proto3" json:"encryptedSessionKey,omitempty"`
	// AccountId is the cloud account ULID.
	AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"accountId,omitempty"`
	// EntityId is the cloud username.
	EntityId string `protobuf:"bytes,3,opt,name=entity_id,json=entityId,proto3" json:"entityId,omitempty"`
	// contains filtered or unexported fields
}

HandoffCompletion is sent by the browser to the AuthSessionDO after successful auth. Contains the encrypted session key.

func (*HandoffCompletion) CloneMessageVT

func (m *HandoffCompletion) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HandoffCompletion) CloneVT

func (m *HandoffCompletion) CloneVT() *HandoffCompletion

func (*HandoffCompletion) EqualMessageVT

func (this *HandoffCompletion) EqualMessageVT(thatMsg any) bool

func (*HandoffCompletion) EqualVT

func (this *HandoffCompletion) EqualVT(that *HandoffCompletion) bool

func (*HandoffCompletion) GetAccountId

func (x *HandoffCompletion) GetAccountId() string

func (*HandoffCompletion) GetEncryptedSessionKey

func (x *HandoffCompletion) GetEncryptedSessionKey() []byte

func (*HandoffCompletion) GetEntityId

func (x *HandoffCompletion) GetEntityId() string

func (*HandoffCompletion) MarshalJSON

func (x *HandoffCompletion) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HandoffCompletion to JSON.

func (*HandoffCompletion) MarshalProtoJSON

func (x *HandoffCompletion) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HandoffCompletion message to JSON.

func (*HandoffCompletion) MarshalProtoText

func (x *HandoffCompletion) MarshalProtoText() string

func (*HandoffCompletion) MarshalToSizedBufferVT

func (m *HandoffCompletion) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HandoffCompletion) MarshalToVT

func (m *HandoffCompletion) MarshalToVT(dAtA []byte) (int, error)

func (*HandoffCompletion) MarshalVT

func (m *HandoffCompletion) MarshalVT() (dAtA []byte, err error)

func (*HandoffCompletion) ProtoMessage

func (*HandoffCompletion) ProtoMessage()

func (*HandoffCompletion) Reset

func (x *HandoffCompletion) Reset()

func (*HandoffCompletion) SizeVT

func (m *HandoffCompletion) SizeVT() (n int)

func (*HandoffCompletion) String

func (x *HandoffCompletion) String() string

func (*HandoffCompletion) UnmarshalJSON

func (x *HandoffCompletion) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the HandoffCompletion from JSON.

func (*HandoffCompletion) UnmarshalProtoJSON

func (x *HandoffCompletion) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HandoffCompletion message from JSON.

func (*HandoffCompletion) UnmarshalVT

func (m *HandoffCompletion) UnmarshalVT(dAtA []byte) error

type HandoffRequest

type HandoffRequest struct {

	// DevicePublicKey is the ephemeral Ed25519 public key of the device.
	DevicePublicKey []byte `protobuf:"bytes,1,opt,name=device_public_key,json=devicePublicKey,proto3" json:"devicePublicKey,omitempty"`
	// DeviceName is the human-readable name of the device.
	DeviceName string `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3" json:"deviceName,omitempty"`
	// SessionNonce is a ULID that keys the AuthSessionDO.
	SessionNonce string `protobuf:"bytes,3,opt,name=session_nonce,json=sessionNonce,proto3" json:"sessionNonce,omitempty"`
	// ClientType is the type of client requesting auth.
	ClientType string `protobuf:"bytes,4,opt,name=client_type,json=clientType,proto3" json:"clientType,omitempty"`
	// contains filtered or unexported fields
}

HandoffRequest is sent by the device (desktop/CLI) to initiate browser-delegated auth. Encoded as base64url in URL fragment.

func (*HandoffRequest) CloneMessageVT

func (m *HandoffRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HandoffRequest) CloneVT

func (m *HandoffRequest) CloneVT() *HandoffRequest

func (*HandoffRequest) EqualMessageVT

func (this *HandoffRequest) EqualMessageVT(thatMsg any) bool

func (*HandoffRequest) EqualVT

func (this *HandoffRequest) EqualVT(that *HandoffRequest) bool

func (*HandoffRequest) GetClientType

func (x *HandoffRequest) GetClientType() string

func (*HandoffRequest) GetDeviceName

func (x *HandoffRequest) GetDeviceName() string

func (*HandoffRequest) GetDevicePublicKey

func (x *HandoffRequest) GetDevicePublicKey() []byte

func (*HandoffRequest) GetSessionNonce

func (x *HandoffRequest) GetSessionNonce() string

func (*HandoffRequest) MarshalJSON

func (x *HandoffRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HandoffRequest to JSON.

func (*HandoffRequest) MarshalProtoJSON

func (x *HandoffRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HandoffRequest message to JSON.

func (*HandoffRequest) MarshalProtoText

func (x *HandoffRequest) MarshalProtoText() string

func (*HandoffRequest) MarshalToSizedBufferVT

func (m *HandoffRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HandoffRequest) MarshalToVT

func (m *HandoffRequest) MarshalToVT(dAtA []byte) (int, error)

func (*HandoffRequest) MarshalVT

func (m *HandoffRequest) MarshalVT() (dAtA []byte, err error)

func (*HandoffRequest) ProtoMessage

func (*HandoffRequest) ProtoMessage()

func (*HandoffRequest) Reset

func (x *HandoffRequest) Reset()

func (*HandoffRequest) SizeVT

func (m *HandoffRequest) SizeVT() (n int)

func (*HandoffRequest) String

func (x *HandoffRequest) String() string

func (*HandoffRequest) UnmarshalJSON

func (x *HandoffRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the HandoffRequest from JSON.

func (*HandoffRequest) UnmarshalProtoJSON

func (x *HandoffRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HandoffRequest message from JSON.

func (*HandoffRequest) UnmarshalVT

func (m *HandoffRequest) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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