resource_provider

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalProviderResource

type LocalProviderResource struct {
	*ProviderResource
	// contains filtered or unexported fields
}

LocalProviderResource implements the LocalProviderResourceService.

func NewLocalProviderResource

func NewLocalProviderResource(pr *ProviderResource, le *logrus.Entry, b bus.Bus, prov *provider_local.Provider) *LocalProviderResource

NewLocalProviderResource creates a new LocalProviderResource.

func (*LocalProviderResource) CreateAccount

CreateAccount creates a ProviderAccount and Session on the local provider.

type ProviderResource

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

ProviderResource wraps a core provider for resource access.

func NewProviderResource

func NewProviderResource(le *logrus.Entry, b bus.Bus, prov provider.Provider) *ProviderResource

NewProviderResource creates a new ProviderResource.

func (*ProviderResource) AccessProviderAccount

AccessProviderAccount mounts a provider account and returns a resource ID.

func (*ProviderResource) GetMux

func (r *ProviderResource) GetMux() srpc.Invoker

GetMux returns the rpc mux.

func (*ProviderResource) GetProviderInfo

GetProviderInfo returns information about this provider.

type SpacewaveProviderResource

type SpacewaveProviderResource struct {
	*ProviderResource
	// contains filtered or unexported fields
}

SpacewaveProviderResource implements the SpacewaveProviderResourceService.

func NewSpacewaveProviderResource

func NewSpacewaveProviderResource(pr *ProviderResource, le *logrus.Entry, b bus.Bus, prov *provider_spacewave.Provider) *SpacewaveProviderResource

NewSpacewaveProviderResource creates a new SpacewaveProviderResource.

func (*SpacewaveProviderResource) ConfirmDesktopPasskey

ConfirmDesktopPasskey completes native desktop passkey account creation.

func (*SpacewaveProviderResource) ConfirmDesktopSSO

ConfirmDesktopSSO completes native desktop SSO account creation.

func (*SpacewaveProviderResource) CreateAccount

CreateAccount creates an account on the spacewave provider.

func (*SpacewaveProviderResource) GenerateAuthKeypairs

GenerateAuthKeypairs generates account and session auth key material.

func (*SpacewaveProviderResource) GeneratePasskeyPrfSalt

GeneratePasskeyPrfSalt creates a WebAuthn PRF salt.

func (*SpacewaveProviderResource) GetCloudProviderConfig

GetCloudProviderConfig returns pre-auth provider configuration.

func (*SpacewaveProviderResource) GetLinkedCloudSession

GetLinkedCloudSession returns the session index of the linked cloud session. Called from a local session context: reads the linked-cloud key from the local provider's ObjectStore, then walks the session list for a spacewave session with the matching provider account ID.

func (*SpacewaveProviderResource) LoginAccount

LoginAccount attempts to log in to an existing account without creating one. Returns a result oneof: session on success, is_new_account if the account does not exist, or error_code if the credentials are wrong.

func (*SpacewaveProviderResource) LoginOrCreateAccount

LoginOrCreateAccount logs in or creates an account on the spacewave provider.

func (*SpacewaveProviderResource) LoginWithEntityKey

LoginWithEntityKey creates a session using a pre-resolved entity private key.

func (*SpacewaveProviderResource) MountLinkedDeviceSession added in v0.51.8

MountLinkedDeviceSession mounts a SpaceLink-approved DEVICE session.

func (*SpacewaveProviderResource) PasskeyAuthOptions

PasskeyAuthOptions fetches WebAuthn authentication options from the cloud.

func (*SpacewaveProviderResource) PasskeyAuthVerify

PasskeyAuthVerify verifies a WebAuthn authentication credential with the cloud.

func (*SpacewaveProviderResource) PasskeyCheckUsername

PasskeyCheckUsername acknowledges the opaque first passkey step.

func (*SpacewaveProviderResource) PasskeyConfirmSignup

PasskeyConfirmSignup confirms browser-owned passkey signup for the web flow.

func (*SpacewaveProviderResource) PasskeyRegisterChallenge

PasskeyRegisterChallenge fetches WebAuthn registration options for signup.

func (*SpacewaveProviderResource) ReauthenticateSession

ReauthenticateSession re-authenticates a session whose key became stale. Derives an entity key from the credential, verifies with the cloud, generates a new session key, and clears the UNAUTHENTICATED status.

func (*SpacewaveProviderResource) RecoverExecute

RecoverExecute completes account recovery by deriving a new password keypair, signing the recovery request, and registering the new keypair.

func (*SpacewaveProviderResource) RecoverVerify

RecoverVerify verifies a recovery token from an email link.

func (*SpacewaveProviderResource) RelayDesktopPasskey

RelayDesktopPasskey relays a browser ceremony result back to native alpha.

func (*SpacewaveProviderResource) RequestRecoveryEmail

RequestRecoveryEmail requests a recovery email from the cloud.

func (*SpacewaveProviderResource) SSOCodeExchange

SSOCodeExchange exchanges an OAuth authorization code for account info.

func (*SpacewaveProviderResource) SSONonceExchange

SSONonceExchange exchanges an auth-session nonce for the stored SSO result.

func (*SpacewaveProviderResource) StartBrowserHandoff

StartBrowserHandoff opens the browser auth handoff flow on native builds.

func (*SpacewaveProviderResource) StartDesktopPasskey

StartDesktopPasskey starts the native desktop passkey flow on native builds.

func (*SpacewaveProviderResource) StartDesktopSSO

StartDesktopSSO starts the native desktop SSO flow on native builds.

func (*SpacewaveProviderResource) UnwrapPemWithPin

UnwrapPemWithPin unwraps an entity PEM with age scrypt PIN encryption.

func (*SpacewaveProviderResource) UnwrapWithPasskeyPrf

UnwrapWithPasskeyPrf unwraps an auth blob with the WebAuthn PRF output.

func (*SpacewaveProviderResource) WrapPemWithPin

WrapPemWithPin wraps an entity PEM with age scrypt PIN encryption.

func (*SpacewaveProviderResource) WrapWithPasskeyPrf

WrapWithPasskeyPrf wraps an auth blob with the WebAuthn PRF output.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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